commit 7831f0e89c81f3ce27de1d9d0fe6121329c8cc8c parent 35f205a11bb1ae59efc574ed27316379a4590adf Author: Alex Balgavy <alex@balgavy.eu> Date: Thu, 8 Jul 2021 19:16:45 +0200 emacs: binding to easily edit my config Diffstat:
M | emacs/config.org | | | 8 | ++++++++ |
1 file changed, 8 insertions(+), 0 deletions(-)
diff --git a/emacs/config.org b/emacs/config.org @@ -428,6 +428,14 @@ Use hippie expand instead of dabbrev-expand: #+begin_src emacs-lisp (setq apropos-do-all t) #+end_src +** Easily edit my config +Bind a keyboard shortcut to open my config. +The "(interactive)" means that it can be called from a keybinding or from M-x (though since it's a lambda, it can't be called from M-x). + +#+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 + * Notmuch Define some saved searches (i.e. mailboxes):