diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-09-23 10:48:02 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-09-23 10:48:02 +0200 |
commit | 09ba25b7dcd04e4ab76740f2863d72b0cbc8a6d3 (patch) | |
tree | ef313e36888a0a08b0a24e2e86640a3b015f55f4 /.config/emacs/init.el | |
parent | b7f7ec58676d05fb36698a3a71ed0e019761b693 (diff) |
emacs: Unify tempel configuration
Diffstat (limited to '.config/emacs/init.el')
-rw-r--r-- | .config/emacs/init.el | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/.config/emacs/init.el b/.config/emacs/init.el index 76006b5..b653728 100644 --- a/.config/emacs/init.el +++ b/.config/emacs/init.el @@ -493,13 +493,14 @@ existing grammars." :pin gnu :custom (tempel-trigger-prefix ",") - (tempel-path (expand-file-name "templates" x-config-directory)) :init (dolist (mode '(conf-mode prog-mode text-mode)) (add-hook (x-mode-to-hook mode) (λ (add-hook 'completion-at-point-functions - #'tempel-complete -10 :local))))) + #'tempel-complete -10 :local)))) + (x-set tempel-path (expand-file-name "templates" x-config-directory)) + (push (cons tempel-path #'lisp-data-mode) auto-mode-alist)) (use-package eglot-tempel :init @@ -778,8 +779,6 @@ a semicolon following a return statement." (use-package vimscript-ts-mode) (push '("\\.go\\'" . go-ts-mode) auto-mode-alist) -(with-eval-after-load 'tempel - (push (cons tempel-path #'lisp-data-mode) auto-mode-alist)) ;;; Popup Windows (require 'popup) |