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

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

[elpa] master 4fd8ab1 02/60: README.mdown (per-buffer): Remove needless


From: João Távora
Subject: [elpa] master 4fd8ab1 02/60: README.mdown (per-buffer): Remove needless lambda
Date: Thu, 21 Jan 2016 22:35:47 +0000

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

    README.mdown (per-buffer): Remove needless lambda
---
 README.mdown |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/README.mdown b/README.mdown
index 4a5be57..5806994 100644
--- a/README.mdown
+++ b/README.mdown
@@ -49,9 +49,7 @@ 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)))
+    (add-hook 'prog-mode-hook #'yas-minor-mode)
 
 # Where are the snippets?
 



reply via email to

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