summary refs log tree commit diff
path: root/emacs/custom
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-05-15 14:16:09 -0700
committerFranck Cuny <franck@fcuny.net>2022-05-19 17:51:57 -0700
commit1fb29b74886139c725ce4e53aa858bdb3bc2cdcc (patch)
tree1dfd94f471592a3b828874f6180cfbe1a1632bd5 /emacs/custom
parentcorfu: the function `corfu-global-mode` has been renamed (diff)
downloademacs.d-1fb29b74886139c725ce4e53aa858bdb3bc2cdcc.tar.gz
yas: change the default keybinding
Diffstat (limited to '')
-rw-r--r--emacs/custom/my-settings.el6
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)