Posts Tagged short
Emacs – select entire buffer macro
This is some emacs lisp code that makes -c a select the entire buffer. This is all terribly simple to do (if you spend a while looking at the documentation) – but I’d quite like to be able to cut and paste this without think. This has to pasted into your .emacs file to work.
(fset 'select-buffer [?\C-a ?\M-]) (global-set-key "^Ca" (quote select-buffer))
Of course, if you, unlike me, read documentation before deciding to impose your views upon people you might just use the mark-whole-buffer macro instead, which seems to be bound to C-x h by default.
1 comment March 15, 2008