From: Joao Tavora Date: Thu, 28 Jun 2012 13:28:26 +0000 (+0100) Subject: docfix: add the workaround for using yasnippet as a non-global minor mode. See issue... X-Git-Url: https://code.delx.au/gnu-emacs-elpa/commitdiff_plain/e263de79ed5cc77ac0d9a282e7b3f3b29d0f64ca docfix: add the workaround for using yasnippet as a non-global minor mode. See issue #253 --- diff --git a/README.mdown b/README.mdown index db5e36f5f..ea4d4f088 100644 --- a/README.mdown +++ b/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