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

From: Lars Ingebrigtsen <[email-masked]>
Date: Tue, 26 Jul 2022 14:07:08 +0200

[email-masked] 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.