mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-13 21:13:04 +00:00
Merge pull request #569 from npostavs/doc-obsolete
README fixes, mark yas-initialize as obsolete
This commit is contained in:
commit
890bd7edcd
17
README.mdown
17
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
|
## Install with el-get
|
||||||
|
|
||||||
El-get is a nice way to get the most recent version, too. See
|
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
|
https://github.com/dimitri/el-get for instructions.
|
||||||
"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)
|
|
||||||
|
|
||||||
## Use `yas-minor-mode` on a per-buffer basis
|
## Use `yas-minor-mode` on a per-buffer basis
|
||||||
|
|
||||||
@ -60,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-reload-all)` to load the snippet tables. Then add a call to
|
||||||
`(yas-minor-mode)` to the major-modes where you to enable YASnippet.
|
`(yas-minor-mode)` to the major-modes where you to enable YASnippet.
|
||||||
|
|
||||||
(add-hook 'prog-mode-hook
|
(add-hook 'prog-mode-hook #'yas-minor-mode)
|
||||||
'(lambda ()
|
|
||||||
(yas-minor-mode)))
|
|
||||||
|
|
||||||
# Where are the snippets?
|
# Where are the snippets?
|
||||||
|
|
||||||
|
@ -4434,6 +4434,7 @@ and return the directory. Return nil if not found."
|
|||||||
|
|
||||||
(defun yas-initialize ()
|
(defun yas-initialize ()
|
||||||
"For backward compatibility, enable `yas-minor-mode' globally."
|
"For backward compatibility, enable `yas-minor-mode' globally."
|
||||||
|
(declare (obsolete "Use (yas-global-mode 1) instead." "0.8"))
|
||||||
(yas-global-mode 1))
|
(yas-global-mode 1))
|
||||||
|
|
||||||
(defvar yas--backported-syms '(;; `defcustom's
|
(defvar yas--backported-syms '(;; `defcustom's
|
||||||
|
Loading…
x
Reference in New Issue
Block a user