emacs: Switch to tempel for snippets

This commit is contained in:
Charlotte Van Petegem 2023-08-01 22:45:23 +02:00
parent 762ec66b84
commit bf6179ffe8
No known key found for this signature in database
GPG key ID: 019E764B7184435A
9 changed files with 67 additions and 77 deletions

View file

@ -261,6 +261,18 @@
(use-package rainbow-delimiters
:hook (prog-mode . rainbow-delimiters-mode))
;; Tempel (snippet expansion)
(use-package tempel
;; This is not very nice, but let's just assume that development machines have my nixos-config checked out
:custom (tempel-path "/home/charlotte/repos/nixos-config/modules/base/emacs/snippets/*.eld")
:general
(lmap
"t i" '(tempel-insert :which-key "Insert template")
)
:config
(setq completion-at-point-functions (cons #'tempel-complete completion-at-point-functions))
)
;; List item selection interface
(use-package vertico
:custom (vertico-count 20 "Allow selector to be a bit higher")