From 9e60bde41c2fc55f1cb45e36125ec612c4783d50 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Wed, 7 Feb 2024 23:39:46 -0500 Subject: [PATCH] Use M-TAB instead of TAB for yasnippet to avoid accidental expansion --- .emacs.d/init.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.emacs.d/init.el b/.emacs.d/init.el index abe3605..6ac0f47 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -831,6 +831,9 @@ (use-package yasnippet :commands yas-minor-mode + :bind (:map yas-minor-mode-map + ("TAB" . nil) + ("M-TAB" . yas-expand)) :init (add-hook 'LaTeX-mode-hook (lambda ()