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

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

Re: yasnippet global mode not active when visiting a markdown buffer


From: Luca Ferrari
Subject: Re: yasnippet global mode not active when visiting a markdown buffer
Date: Fri, 11 Nov 2022 13:54:11 +0100

On Mon, Nov 7, 2022 at 5:01 PM Luca Ferrari <fluca1978@gmail.com> wrote:
>
> Hi all,
> in my configuration I've:
>
>   (use-package markdown-mode
>     :ensure t
>     :init
>     (setq markdown-command "multimarkdown"))
>
> (use-package yasnippet
>   :ensure t)
>
> (add-hook 'prog-mode-hook #'yas-minor-mode)
>
>
> (global-set-key (kbd "C-c s n") 'yas-new-snippet)
> (global-set-key (kbd "C-c s i") 'yas-insert-snippet)
> (global-set-key (kbd "C-c s v") 'yas-visit-snippet-file)
>
> (use-package yasnippet-snippets :ensure t)
> (yas-global-mode 1)

This is driving me crazy, is there a way to understand if
yas-global-mode is turned off whenever I enter the markdown-mode?

Thanks,
Luca



reply via email to

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