Pages

Monday, June 13, 2011

Bind F5 to revert-buffer in Emacs

I use F5 as the revert key in Emacs. Add the following code to your .emacs file to accomplish to bind F5 to the revert-buffer function.

(global-set-key [f5] '(lambda () (interactive) (revert-buffer nil t nil)))

No comments:

Post a Comment