emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master fb28ec8 37/60: * README.mdown (Use `yas-minor-mode`): Rewo


From: João Távora
Subject: [elpa] master fb28ec8 37/60: * README.mdown (Use `yas-minor-mode`): Reword.
Date: Thu, 21 Jan 2016 22:36:01 +0000

branch: master
commit fb28ec8384b4f5b4638bd4e1a051498e7276af68
Author: Noam Postavsky <address@hidden>
Commit: Noam Postavsky <address@hidden>

    * README.mdown (Use `yas-minor-mode`): Reword.
    
    Close #623.
---
 README.mdown |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/README.mdown b/README.mdown
index 3a956fb..716b620 100644
--- a/README.mdown
+++ b/README.mdown
@@ -43,10 +43,12 @@ 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.
+To use YASnippet as a non-global minor mode, don't call
+`yas-global-mode`; instead call `yas-reload-all` to load the snippet
+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)
 
 # Where are the snippets?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]