Dial F2 for Funk

TorgoX on 2005-05-05T06:14:19

Dear Log,

My horrible mammalian brain has decided that the F2 key means "rename this file" -- even when I'm in Emacs dired mode.

So I got ambitious and made it work!

(add-hook 'dired-mode-hook
               '(lambda ()
                  (define-key dired-mode-map [f2]
                              'dired-do-rename)))