all repos — nixfiles @ 28cdee574f731b4adb769c423af55faca2941b2e

System and user configuration, managed by nix and home-manager

emacs: make using tempel easier (using tab to go to next argument)
Alan Pearce alan@alanpearce.eu
Mon, 06 May 2024 13:08:23 +0200
commit

28cdee574f731b4adb769c423af55faca2941b2e

parent

77635d7322042c4410567719a8a5636631cf7988

1 files changed, 4 insertions(+), 2 deletions(-)

jump to
M user/emacs/init.eluser/emacs/init.el
@@ -579,8 +579,10 @@           (add-hook 'kill-emacs-hook #'tabnine-kill-process)))
 
 (use-package tempel
-  :bind (("M-+" . tempel-complete) ;; Alternative tempel-expand
-         ("M-*" . tempel-insert))
+  :general ("M-+" #'tempel-complete ;; Alternative tempel-expand
+            "M-*" #'tempel-insert
+            :keymaps 'tempel-mode-map
+            "<tab>" #'tempel-next)
   :config (progn
             (global-tempel-abbrev-mode +1)))