Emacs Tips
- Start emacs in debugging mode:
emacs --debug-init
- Check the value of your
load-path
by asking for help on the variable:
C-h v load-path
- Add your own load-path:
(add-to-list 'load-path "/dir/subdir/")
Ref http://www.gnu.org/software/emacs/emacs-faq.html
- Activate menu bar:
F10 or ESC ` or M-`
- Turn on color mode:
M-x font-lock-mode
- 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)
- Jump to a particular line:
M-x goto-line
- 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
- Text Selection
- Start selection C-@
- Copy selected area Esc-w
- Cut selected area C-w
- Paste copied/cut area C-y
- Search the word under curor:
C-s C-w