chiark / gitweb /
dot/emacs: Add a binding to open a file in `view-mode'.
authorMark Wooding <mdw@distorted.org.uk>
Sat, 30 May 2020 09:43:31 +0000 (10:43 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 30 May 2020 09:43:31 +0000 (10:43 +0100)
Why isn't there one of these already?

dot/emacs

index bd6f7314f620da5093cd4f58db0a83ae7e882d54..fa934aae1dddde1cb8beca1d920b1279a7ea282f 100644 (file)
--- a/dot/emacs
+++ b/dot/emacs
   (global-set-key [?\C-c ?t ?s] 'timeclock-status-string)
   (global-set-key [?\C-c ?t ?t] 'gtags-find-tag-from-here)
   (global-set-key [?\C-c ?t ?w] 'timeclock-workday-remaining-string)
+  (global-set-key [?\C-c ?v ?f] 'view-file)
   (global-set-key [?\C-c ?v ?i] 'vm-visit-imap-folder)
   (global-set-key [?\C-c ?v ?m] 'vm-visit-folder)
   (global-set-key [?\C-c ?v ?v] 'mdw-auto-revert)