Ads by Google

Wednesday, December 4, 2013

A few unrelated Emacs tips

I used to prefer installing things by hand but now I'm not so sure after using Emacs package manager.  Add this to your .emacs and do a M-x list-packages to see the list of packages that are available for Emacs.

(setq package-archives '(("gnu" . "http://elpa.gnu.org/packages/")
                         ("marmalade" . "http://marmalade-repo.org/packages/")
                         ("melpa" . "http://melpa.milkbox.net/packages/")))

Yes, not all packages are there; yes, the sites go down sometime, yes it's goes into .emacs.d folder in your relevant OS.   It works smoothly and it saves you a lot of hassle in scouring the net for stuff which overrides the minor inconveniences.

Use outline-mode in your AucTeX mode when editing LaTeX files as outline-minor-mode and while you're at it, do install OutlineMagic to handle the not-so-easy-keychord issue of outline-mode.  I've mapped mine to PF12 key.
 (eval-after-load 'outline
  '(progn
    (require 'outline-magic)
    (define-key outline-minor-mode-map (kbd "<\f12>") 'outline-cycle)))

If you ever had the need to copy your gcc messages to different folders at the same time when sending out emails in gnus, then this thread might be of use to you. Currently doesn't work with group names with spaces in their names especially IMAP folders.

No comments: