bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#56630: (yasnippet) how to disable TAB <tab> C-i?


From: Lars Ingebrigtsen
Subject: bug#56630: (yasnippet) how to disable TAB <tab> C-i?
Date: Tue, 26 Jul 2022 14:07:08 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

edgar@openmail.cc writes:

> Unfortunately, not. This does not work either:
>
> (with-eval-after-load 'yasnippet
>
>   (setq yas-snippet-dirs
>         (list "~/.emacs.d/snippets/"))
>   (yas--load-snippet-dirs)
>   ;; allow to insert a snippet within a snippet
>   (setq yas-triggers-in-field t)
>   ;; Change trigger key
>   (define-key yas-minor-mode-map (kbd "C-i") nil)
>   (define-key yas-minor-mode-map (kbd "C-c m") 'yas-expand)
>   (define-key yas-minor-mode-map [(tab)]        nil)
>   (define-key yas-minor-mode-map (kbd "TAB")    nil)
>   (define-key yas-minor-mode-map (kbd "<tab>")  nil))

Looking at yasnippet.el, I don't see any obvious reason why that
shouldn't work.  Perhaps Noam has some comments; added to the CCs.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]