Using a snippet for several modes

51 views
Skip to first unread message

Julien Cubizolles

unread,
Sep 6, 2013, 12:51:06 PM9/6/13
to smart-...@googlegroups.com
I'd like to use some of my latex snippets for typing latex code in an
orgmode buffer. Unfortunately, snippets seem to be mode
specific. Loading the latex-mode directory from an org buffer doesn't
work. I could move these snippets to text-mode but I'm looking for a
cleaner way. What would you suggest ?

Julien.


Matthew Fidler

unread,
Sep 6, 2013, 11:23:22 PM9/6/13
to smart-...@googlegroups.com
I think there was a .yas-parents file that allows you to copy snippet between the two.  One way is to make a shared directory tex-org-mode and make it a parent of tex-mode and org-mode.



Julien.


--
You received this message because you are subscribed to the Google Groups "smart-snippet and YASnippet" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smart-snippe...@googlegroups.com.
To post to this group, send email to smart-...@googlegroups.com.
Visit this group at http://groups.google.com/group/smart-snippet.
For more options, visit https://groups.google.com/groups/opt_out.

Julien Cubizolles

unread,
Sep 9, 2013, 4:13:04 PM9/9/13
to smart-...@googlegroups.com
Matthew Fidler <matthew...@gmail.com>
writes:

> I think there was a .yas-parents file that allows you to copy snippet
> between the two. One way is to make a shared directory tex-org-mode and
> make it a parent of tex-mode and org-mode.

Thanks that's what I was missing.

Matthew Fidler

unread,
Sep 9, 2013, 7:30:49 PM9/9/13
to smart-...@googlegroups.com

No problem.

Reply all
Reply to author
Forward
0 new messages