commit a35f5f9762b9db2fbcb4432cefcbeccc152de518
parent 480dcccfd82202a290047d4f80aa7972d6ff8e51
Author: Alex Balgavy <alex@balgavy.eu>
Date: Wed, 11 Aug 2021 17:12:36 +0200
emacs: bind a key to view-mode
Diffstat:
1 file changed, 7 insertions(+), 0 deletions(-)
diff --git a/emacs/config.org b/emacs/config.org
@@ -623,6 +623,13 @@ The "(interactive)" means that it can be called from a keybinding or from M-x (t
#+begin_src emacs-lisp
(global-set-key (kbd "C-c E") (lambda () (interactive) (find-file (expand-file-name "config.org" user-emacs-directory))))
#+end_src
+** Fast access to view-mode (pager)
+I want to bind view-mode to a key for easy access:
+
+#+begin_src emacs-lisp
+ (global-set-key (kbd "C-c v") 'view-mode)
+#+end_src
+
** Org notification
macOS doesn't have dbus. So I use terminal-notifier for functions like org-notify: