mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-13 21:13:04 +00:00
snippet-menu.org: links, formatting, obsolete refs
This commit is contained in:
parent
eaeb6ff7a9
commit
63873e7d5a
@ -1,6 +1,8 @@
|
|||||||
|
#+SETUPFILE: org-setup.inc
|
||||||
|
|
||||||
* YASnippet menu
|
* YASnippet menu
|
||||||
|
|
||||||
When =yas-minor-mode= is active, YASnippet will setup a menu just after
|
When [[sym:yas-minor-mode][=yas-minor-mode=]] is active, YASnippet will setup a menu just after
|
||||||
the "Buffers" menu in the menubar.
|
the "Buffers" menu in the menubar.
|
||||||
|
|
||||||
In this menu, you can find
|
In this menu, you can find
|
||||||
@ -15,16 +17,16 @@ In this menu, you can find
|
|||||||
- A series of submenus for customizing and exploring YASnippet
|
- A series of submenus for customizing and exploring YASnippet
|
||||||
behavior.
|
behavior.
|
||||||
|
|
||||||
[[images/menu-1.png]]
|
[[./images/menu-1.png]]
|
||||||
|
|
||||||
** Loading snippets from menu
|
** Loading snippets from menu
|
||||||
|
|
||||||
Invoking "Load snippets..." from the menu invokes =yas-load-directory=
|
Invoking "Load snippets..." from the menu invokes [[sym:yas-load-directory][=yas-load-directory=]]
|
||||||
and prompts you for a snippet directory hierarchy to load.
|
and prompts you for a snippet directory hierarchy to load.
|
||||||
|
|
||||||
Also useful is the "Reload all" options which uncondionally reloads all
|
Also useful is the "Reload everything" item to invoke [[#yas-reload-all][=yas-reload-all=]]
|
||||||
the snippets directories defined in =yas-root-directory= and rebuilds
|
which uncondionally reloads all the snippets directories defined in
|
||||||
the menus.
|
[[sym:yas-snippet-dirs][=yas-snippet-dirs=]] and rebuilds the menus.
|
||||||
|
|
||||||
** Snippet menu behavior
|
** Snippet menu behavior
|
||||||
|
|
||||||
@ -35,16 +37,16 @@ You can use this section to explore currently loaded snippets. If you
|
|||||||
click on one of them, the default behavior is to expand it,
|
click on one of them, the default behavior is to expand it,
|
||||||
unconditionally, inside the current buffer.
|
unconditionally, inside the current buffer.
|
||||||
|
|
||||||
You can however, customize variable =yas-visit-from-menu= to be =t=
|
You can however, customize variable [[sym:yas-visit-from-menu][=yas-visit-from-menu=]] to be =t=
|
||||||
which will take you to the snippet definition file when you select it
|
which will take you to the snippet definition file when you select it
|
||||||
from the menu.
|
from the menu.
|
||||||
|
|
||||||
If you want the menu show only snippet tables whose name corresponds to
|
If you want the menu show only snippet tables whose name corresponds to
|
||||||
a "real" major mode. You do this by setting =yas-use-menu= to
|
a "real" major mode. You do this by setting [[sym:yas-use-menu][=yas-use-menu=]] to
|
||||||
='real-modes=.
|
'=real-modes=.
|
||||||
|
|
||||||
Finally, to have the menu show only the tables for the currently active
|
Finally, to have the menu show only the tables for the currently active
|
||||||
mode, set =yas-use-menu= to =abbreviate=.
|
mode, set [[sym:yas-use-menu][=yas-use-menu=]] to =abbreviate=.
|
||||||
|
|
||||||
These customizations can also be found in the menu itself, under the
|
These customizations can also be found in the menu itself, under the
|
||||||
"Snippet menu behavior" submenu.
|
"Snippet menu behavior" submenu.
|
||||||
@ -52,13 +54,13 @@ These customizations can also be found in the menu itself, under the
|
|||||||
** Controlling indenting
|
** Controlling indenting
|
||||||
|
|
||||||
The "Indenting" submenu contains options to control the values of
|
The "Indenting" submenu contains options to control the values of
|
||||||
=yas-indent-line= and =yas-also-auto-indent-first-line=. See
|
[[sym:yas-indent-line][=yas-indent-line=]] and [[sym:yas-also-auto-indent-first-line][=yas-also-auto-indent-first-line=]]. See
|
||||||
[[snippet-development.html][Writing snippets]] .
|
[[./snippet-development.org][Writing snippets]] .
|
||||||
|
|
||||||
** Prompting method
|
** Prompting method
|
||||||
|
|
||||||
The "Prompting method" submenu contains options to control the value of
|
The "Prompting method" submenu contains options to control the value of
|
||||||
=yas-prompt-functions=. See [[snippet-expansion.html][Expanding
|
[[sym:yas-prompt-functions][=yas-prompt-functions=]]. See [[./snippet-expansion.org][Expanding
|
||||||
snippets]] .
|
snippets]] .
|
||||||
|
|
||||||
** Misc
|
** Misc
|
||||||
|
Loading…
x
Reference in New Issue
Block a user