mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-13 21:13:04 +00:00
parent
cd05da61f9
commit
fb28ec8384
@ -43,10 +43,12 @@ https://github.com/dimitri/el-get for instructions.
|
|||||||
|
|
||||||
## Use `yas-minor-mode` on a per-buffer basis
|
## Use `yas-minor-mode` on a per-buffer basis
|
||||||
|
|
||||||
To use YASnippet as a non-global minor mode, replace `(yas-global-mode 1)` with
|
To use YASnippet as a non-global minor mode, don't call
|
||||||
`(yas-reload-all)` to load the snippet tables. Then add a call to
|
`yas-global-mode`; instead call `yas-reload-all` to load the snippet
|
||||||
`(yas-minor-mode)` to the major-modes where you to enable YASnippet.
|
tables and then call `yas-minor-mode` from the hooks of major-modes
|
||||||
|
where you want YASnippet enabled.
|
||||||
|
|
||||||
|
(yas-reload-all)
|
||||||
(add-hook 'prog-mode-hook #'yas-minor-mode)
|
(add-hook 'prog-mode-hook #'yas-minor-mode)
|
||||||
|
|
||||||
# Where are the snippets?
|
# Where are the snippets?
|
||||||
|
Loading…
x
Reference in New Issue
Block a user