From 09ba25b7dcd04e4ab76740f2863d72b0cbc8a6d3 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Mon, 23 Sep 2024 10:48:02 +0200 Subject: emacs: Unify tempel configuration --- .config/emacs/init.el | 7 +++---- 1 file 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) -- cgit v1.2.3