home

My NixOS systems configurations.
Log | Files | Refs | LICENSE

commit e9754db9202eb9d57b822b4246a86a53e05a5c3a
parent e728fb03ed0e0e0394c58dfe9519eef1d612e5a3
Author: Vincent Demeester <vincent@sbr.pm>
Date:   Wed,  6 Mar 2024 09:46:50 +0100

tools/emacs: force tempel-path

Signed-off-by: Vincent Demeester <vincent@sbr.pm>

Diffstat:
Mtools/emacs/config/config-completion.el | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/emacs/config/config-completion.el b/tools/emacs/config/config-completion.el @@ -207,7 +207,7 @@ Useful for prompts such as `eval-expression' and `shell-command'." :bind (("M-+" . tempel-complete) ;; Alternative tempel-expand ("M-*" . tempel-insert)) :init - (defun tempel-setup-capf () + (defun tempel-setup-capf () ;; Add the Tempel Capf to `completion-at-point-functions'. ;; `tempel-expand' only triggers on exact matches. Alternatively use ;; `tempel-complete' if you want to see all matches, but then you @@ -218,7 +218,7 @@ Useful for prompts such as `eval-expression' and `shell-command'." (setq-local completion-at-point-functions (cons #'tempel-expand completion-at-point-functions))) - + (setq tempel-path (expand-file-name "templates" user-emacs-directory)) (add-hook 'conf-mode-hook 'tempel-setup-capf) (add-hook 'prog-mode-hook 'tempel-setup-capf) (add-hook 'text-mode-hook 'tempel-setup-capf))