Learning Emacs (@emacstips) profile picture

Learning Emacs and sharing what I learned.

Joined August 2009
repeat last command multiple times C-x z z z (each subsequent z repeats command once again)
2
5
Edit file as root: C-x C-f /sudo::/etc/hosts
3
5
Edit remote file via ssh: emacs /username@example.com:/path/to/file http://bit.ly/2lVmn0
2
1
Using 2 spaces instead of tabs - add following to your .emacs (setq-default indent-tabs-mode nil); (setq default-tab-width 2);
1
ecb-hide-ecb-windows / ecb-show-ecb-windows - hide/show the ECB windows
ECB stands for Emacs Code Browser: a list of functions/classes/methods in the current file, directory tree and much more: http://tr.im/zKAf
windows basic: (C-x-2) split-window-vertically (C-x-o) other-window select (C-x-1) delete-other-windows (window fill its frame)
1
2
ibuffer - edit a list of buffers, while editing use m/u - to mark/unmark buffer and d/S/V - to Kill/Save/Revert marked buffers. h - help
ido-find-file (C-x C-f) - opens file and ido-switch-buffer (C-x b) - switch to another buffer.
1
newline-and-indent (C-j). Insert a newline, then indent according to major mode. #emacs
1
dabbrev-expand (M-/) Expand previous word "dynamically". Like esc in textmate #emacs #emacstips.
1