summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2024-05-06 13:08:23 +0200
committerAlan Pearce2024-05-06 13:08:59 +0200
commit28cdee574f731b4adb769c423af55faca2941b2e (patch)
tree25564aa778562e5ddf8885f827cf616a50c1034e
parent77635d7322042c4410567719a8a5636631cf7988 (diff)
downloadnixfiles-28cdee574f731b4adb769c423af55faca2941b2e.tar.lz
nixfiles-28cdee574f731b4adb769c423af55faca2941b2e.tar.zst
nixfiles-28cdee574f731b4adb769c423af55faca2941b2e.zip
emacs: make using tempel easier (using tab to go to next argument)
-rw-r--r--user/emacs/init.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/user/emacs/init.el b/user/emacs/init.el
index 1a34b514..1171ea7c 100644
--- a/user/emacs/init.el
+++ b/user/emacs/init.el
@@ -579,8 +579,10 @@ _C-k_: prev  _u_pper              _=_: upper/lower       _s_mart resolve
           (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)))