From fdef445b7b079550d50d9e0b75f008ecbd04ec0d Mon Sep 17 00:00:00 2001 From: Noam Postavsky Date: Sun, 5 Apr 2015 17:57:46 -0400 Subject: [PATCH 1/3] README.mdown (el-get): Remove obsolete information --- README.mdown | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/README.mdown b/README.mdown index 75ca37a..4a5be57 100644 --- a/README.mdown +++ b/README.mdown @@ -41,18 +41,7 @@ In a recent emacs `M-x list-packages` is the recommended way to list and install ## Install with el-get El-get is a nice way to get the most recent version, too. See -https://github.com/dimitri/el-get for instructions. Be sure to install the -"master" branch since the 3.x series still use the old googlecode code, base. -Consider using this "local" recipe. - - (push '(:name yasnippet - :website "https://github.com/capitaomorte/yasnippet.git" - :description "YASnippet is a template system for Emacs." - :type github - :pkgname "capitaomorte/yasnippet" - :features "yasnippet" - :compile "yasnippet.el") - el-get-sources) +https://github.com/dimitri/el-get for instructions. ## Use `yas-minor-mode` on a per-buffer basis From 4fd8ab166bcadf7b412410d8a03310314d3776bb Mon Sep 17 00:00:00 2001 From: Noam Postavsky Date: Sun, 5 Apr 2015 17:59:18 -0400 Subject: [PATCH 2/3] README.mdown (per-buffer): Remove needless lambda --- README.mdown | 4 +--- 1 file changed, 1 insertion(+), 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? From d61910789f626522a9e7424dccdeec8a76fb95ce Mon Sep 17 00:00:00 2001 From: Noam Postavsky Date: Sun, 5 Apr 2015 18:05:07 -0400 Subject: [PATCH 3/3] yasnippet.el (yas-initialize): Mark obsolete --- yasnippet.el | 1 + 1 file changed, 1 insertion(+) diff --git a/yasnippet.el b/yasnippet.el index 95c96e4..16278cc 100644 --- a/yasnippet.el +++ b/yasnippet.el @@ -4434,6 +4434,7 @@ and return the directory. Return nil if not found." (defun yas-initialize () "For backward compatibility, enable `yas-minor-mode' globally." + (declare (obsolete "Use (yas-global-mode 1) instead." "0.8")) (yas-global-mode 1)) (defvar yas--backported-syms '(;; `defcustom's