all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* yasnippet global mode not active when visiting a markdown buffer
@ 2022-11-07 16:01 Luca Ferrari
  2022-11-11 12:54 ` Luca Ferrari
  0 siblings, 1 reply; 5+ messages in thread
From: Luca Ferrari @ 2022-11-07 16:01 UTC (permalink / raw)
  To: help-gnu-emacs

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)

However, whenever I visit a markdown file the yas-globa-mode is always
toggled off, and I've to automatically enable it. Moreover, even after
enabling it, the keybindings are the default ones, not the global one
I've set up.
What am I missing here?

Thanks,
Luca



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-11-15  2:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-07 16:01 yasnippet global mode not active when visiting a markdown buffer Luca Ferrari
2022-11-11 12:54 ` Luca Ferrari
2022-11-11 20:06   ` Bruno Barbier
2022-11-14 13:09     ` Luca Ferrari
2022-11-15  2:50       ` Emanuel Berg

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.