From 1fb29b74886139c725ce4e53aa858bdb3bc2cdcc Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sun, 15 May 2022 14:16:09 -0700 Subject: yas: change the default keybinding --- emacs/custom/my-settings.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'emacs/custom') 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) -- cgit 1.4.1