diff options
Diffstat (limited to 'emacs/custom')
-rw-r--r-- | emacs/custom/my-settings.el | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/emacs/custom/my-settings.el b/emacs/custom/my-settings.el index 9477965..8062216 100644 --- a/emacs/custom/my-settings.el +++ b/emacs/custom/my-settings.el @@ -61,7 +61,11 @@ (require 'exec-path-from-shell) (add-hook 'emacs-startup-hook (lambda () (exec-path-from-shell-initialize)))) -(customize-set-variable 'yas-snippet-dirs (expand-file-name "etc/snippets" user-emacs-directory)) +(require 'yasnippet) +;; I want the snippets under `etc' +(setq yas-snippet-dirs (expand-file-name "etc/snippets" user-emacs-directory)) +;; the default (tab) conflicts with corfu for completion +(define-key yas-minor-mode-map (kbd "C-c y") #'yas-expand) (provide 'my-settings) |