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

From: [email-masked]
Date: Sun, 24 Jul 2022 17:07:31 +0000

On 2022-07-23 08:05, Lars Ingebrigtsen wrote:
> I'm not familiar with use-package or the syntax it uses for keymaps, 
> but
> does
> 
>    (:map
>     yas-minor-mode-map
>     ("TAB" . nil)
>     ([(tab)] . nil)
> 
> fix the issue?

Hi Lars,

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))

-------------------------------------------------
This free account was provided by VFEmail.net - report spam to [email-masked]
 
ONLY AT VFEmail! - Use our Metadata Mitigator to keep your email out of the NSA's hands!
$24.95 ONETIME Lifetime accounts with Privacy Features!  
15GB disk! No bandwidth quotas!
Commercial and Bulk Mail Options!