Here are a couple of interesting tricks I've got in my .emacs.
This lets me use f5 to switch back and forth between two buffers:
(defun switch-to-other-buffer () "Switch to other-buffer in current window" (interactive) (switch-to-buffer (other-buffer))) (global-set-key [f5] 'switch-to-other-buffer)
This is an example of how to add a new keybinding to
template-mode. Note that you have to call
template-set-keybindings
after changing template-func-list
. I'll
fix this at some point in the future.
;;;; Load my template-generating functions. (require 'template-mode) (add-to-list 'template-func-list '("P" "template.html" '("Filename" "Title"))) (template-set-keybindings)