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

Previous Next

Package: emacs;

Reported by: edgar <at> openmail.cc

Date: Mon, 18 Jul 2022 15:31:01 UTC

Severity: normal

Full log


Message #22 received at 56630 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: edgar <at> openmail.cc
Cc: 56630 <at> debbugs.gnu.org, Noam Postavsky <npostavs <at> users.sourceforge.net>
Subject: Re: bug#56630: (yasnippet) how to disable TAB <tab> C-i?
Date: Tue, 26 Jul 2022 14:07:08 +0200
edgar <at> 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.





This bug report was last modified 2 years and 282 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.