Emacs Tips

  1. Start emacs in debugging mode:
emacs --debug-init
  1. Check the value of your load-path by asking for help on the variable:
C-h v load-path
  1. Add your own load-path:
(add-to-list 'load-path "/dir/subdir/")

Ref http://www.gnu.org/software/emacs/emacs-faq.html

  1. Activate menu bar:
F10  or  ESC `  or   M-`
  1. Turn on color mode:
M-x font-lock-mode
  1. To turn on color mode by default, add the following line in ~/.emacs:
;; turn on font-lock mode
(global-font-lock-mode t)
(setq font-lock-maximum-decoration t)
  1. Jump to a particular line:
M-x goto-line
  1. Jump to the start/end of a block:
C-M-f C-M-b or C-M-n C-M-p
M-x show-paren-mode
  1. Text Selection
  • Start selection C-@
  • Copy selected area Esc-w
  • Cut selected area C-w
  • Paste copied/cut area C-y
  1. Search the word under curor:
C-s C-w