all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Luca Ferrari <fluca1978@gmail.com>
To: help-gnu-emacs <help-gnu-emacs@gnu.org>
Subject: yasnippet global mode not active when visiting a markdown buffer
Date: Mon, 7 Nov 2022 17:01:04 +0100	[thread overview]
Message-ID: <CAKoxK+6Y49LKcdn4cx-wkYmheeBOTYWYjKOQoQbyFi6WZ69A5Q@mail.gmail.com> (raw)

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



             reply	other threads:[~2022-11-07 16:01 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-07 16:01 Luca Ferrari [this message]
2022-11-11 12:54 ` yasnippet global mode not active when visiting a markdown buffer Luca Ferrari
2022-11-11 20:06   ` Bruno Barbier
2022-11-14 13:09     ` Luca Ferrari
2022-11-15  2:50       ` Emanuel Berg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAKoxK+6Y49LKcdn4cx-wkYmheeBOTYWYjKOQoQbyFi6WZ69A5Q@mail.gmail.com \
    --to=fluca1978@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.