Emacs¶
Activating debug on error¶
Meta-x toggle-debug-on-error
Evaluating lisp expression¶
Meta : EXPRESSION
Evaluating lisp expression and insert result in text:
CTRL-u Meta : EXPRESSION
Opening file on another machine via ssh¶
CTRL-x CTRL-F, then enter
/ssh:MACHINE.DOMAIN.NAME:/home/YOURHOME/FILENAME.TXT
When using flyspell, correct the last word¶
The command to do this is flyspell-check-previous-highlighted-word
(so try META x, then
flyspell-check-previous-highlighted-word)).
This is much more useful if bound to a key. For example, to bind it to
CTRL-c j, use:
(global-set-key (kbd "C-c j") 'flyspell-check-previous-highlighted-word)
in your .emacs (or equivalent) config file. (This tip is from http://www.emacswiki.org/emacs/CustomizeAquamacs#toc22).
Useful extensions¶
http://code.google.com/p/yasnippet/ - template system for Emacs
Undo fill-paragraph¶
You can set fill-columnn to a really large number, and fill:
C-u 10000 C-x f M-x fill-individual-paragraphs
Source: http://stackoverflow.com/questions/2471557/how-to-undo-fill-paragraph-in-emacs