For Mark, who is currently languishing in the South-East, I present some of our favourite macros that go in our .emacs files, and help to make life that little bit more bearable. I present, for your delectation:
- Installing the scroll-wheel:
(when window-system
(mwheel-install))
- Mapping Go to Line to something sensible (Alt-Z, in this case):
(global-set-key "\M-z" 'goto-line)
- For the ultimate in handiness, though, you really need to get the name of the window set to the name of the current buffer. Behold:
(defun title-set-title ()
"Set title to current buffer's name"
(let ((name (format "%s (emacs)" (buffer-name))))
(modify-frame-parameters (selected-frame)
(list (cons `name name)))))
(add-hook `post-command-hook
(lambda ()
(title-set-title)))
Unfortunately, it seems the pthreads-ninja macro is closed-source :oP .
Cheers,
Derek.
|