mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-13 21:13:04 +00:00
docfix: add the workaround for using yasnippet as a non-global minor mode. See issue #253
This commit is contained in:
parent
ee398f4d5a
commit
e263de79ed
10
README.mdown
10
README.mdown
@ -40,6 +40,16 @@ El-get is a nice way to get the most recent version, too
|
||||
|
||||
See https://github.com/dimitri/el-get for instructions
|
||||
|
||||
## Use `yas/minor-mode` on a per-buffer basis
|
||||
|
||||
To use yasnippet as a non-global minor mode, replace `(yas/global-mode 1)` with
|
||||
`(yas/reload-all)` to load the snippet tables. Then add a call to
|
||||
`(yas/minor-mode)` to the major-modes where you to enable yasnippet.
|
||||
|
||||
(add-hook 'prog-mode-hook
|
||||
'(lambda ()
|
||||
(yas/minor-mode)))
|
||||
|
||||
# Contributing snippets
|
||||
|
||||
Please do not ask me to add snippets to the default collection under
|
||||
|
Loading…
x
Reference in New Issue
Block a user