diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-09-09 15:34:21 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-09-09 15:34:21 +0200 |
commit | c6c9f113eaef1ba9636dd5342c1cd00c956d61ec (patch) | |
tree | 0ad794b474d6d403693fe88b2af76106998223bb /.config/emacs/init.el | |
parent | f2c432d6560bb90e728b380062b174b775a07081 (diff) |
emacs: Add tempel & eglot-tempel
Diffstat (limited to '.config/emacs/init.el')
-rw-r--r-- | .config/emacs/init.el | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/.config/emacs/init.el b/.config/emacs/init.el index 6823f86..6b29256 100644 --- a/.config/emacs/init.el +++ b/.config/emacs/init.el @@ -515,6 +515,21 @@ existing grammars." :after eglot :config (eglot-booster-mode)) +;;; Snippet Support +(use-package tempel + :pin gnu + :init + (customize-set-variable + 'tempel-path (expand-file-name "templates" x-config-directory)) + (push (cons tempel-path 'lisp-data-mode) auto-mode-alist)) + +(use-package eglot-tempel + :init + (with-eval-after-load 'eglot + (add-hook 'eglot-managed-mode-hook + (λ (unless (default-value eglot-tempel-mode) + (eglot-tempel-mode)))))) + ;;; Automatically Create Directories (defun x-auto-create-directories (original-function filename &rest arguments) "Automatically create and delete parent directories of files. This |