]> code.delx.au - gnu-emacs-elpa/commitdiff
README.mdown (per-buffer): Remove needless lambda
authorNoam Postavsky <npostavs@users.sourceforge.net>
Sun, 5 Apr 2015 21:59:18 +0000 (17:59 -0400)
committerNoam Postavsky <npostavs@users.sourceforge.net>
Sun, 5 Apr 2015 21:59:18 +0000 (17:59 -0400)
README.mdown

index 4a5be573f40ff26b37d987156913bcc26ebdcee3..580699414f02965083976bc72931058254c78c33 100644 (file)
@@ -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?