Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

org-mode src snippets seems broken #1203

Open
benbellick opened this issue Aug 31, 2024 · 1 comment
Open

org-mode src snippets seems broken #1203

benbellick opened this issue Aug 31, 2024 · 1 comment

Comments

@benbellick
Copy link

Hi!

I'm trying to use the src snippet in org-mode and I'm finding the expansion doesn't work.

Using M-x yas-insert-snippet RET src RET yields

#+begin_src 
  
#+end_src

but immediately produces the error

No such language mode: nil-mode

The tab navigation to fill in the placeholder slots then doesn't work.

I am doing this with a minimal emacs config for reproducibility:

(package-initialize)
(setq org-src-tab-acts-natively t)
(require 'org)
(require 'yasnippet)
(yas-global-mode 1)

For reference, here is the snippet:

# -*- mode: snippet -*-
# name: src
# key: <src
# --
#+begin_src $1
  $0
#+end_src

There version of yasnippet installed is listed in list-packages as 20200604.246 and yasnippet-snippets is 1.0
Thanks a ton!

@monnier
Copy link
Collaborator

monnier commented Oct 29, 2024

You might want to report this problem to the yasnippet-snippets package. This is the yasnippet package itself, which doesn't provide the nsippets but only the engine that runs them. If it turns out the problem comes from here, then please come back with the additional info.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants