From f2b259fbcf16587149ee3784ad37c8c948a8ad8d Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Wed, 21 Feb 2024 06:48:15 +0000 Subject: [PATCH] Add template file shortcut --- config/defaults.org | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/config/defaults.org b/config/defaults.org index c7e1194..a0b025b 100644 --- a/config/defaults.org +++ b/config/defaults.org @@ -95,6 +95,14 @@ ;; Scratch buffer shortcut (keymap-global-set "C-c w x" #'scratch-buffer) + ;; Tempel template file shortcut + (with-eval-after-load 'tempel + (defun my/open-template-file () + "Open `tempel' template file" + (interactive) + (find-file tempel-path)) + (keymap-global-set "C-c w t" #'my/open-template-file)) + ;; Org directory shortcut (with-eval-after-load 'org (defun my/open-org-directory ()