2010-08-31 04:59:05 +08:00
|
|
|
(:name yasnippet
|
2012-01-06 05:16:01 +08:00
|
|
|
:website "https://github.com/capitaomorte/yasnippet.git"
|
2011-06-27 04:35:30 +08:00
|
|
|
:description "YASnippet is a template system for Emacs."
|
2011-10-10 02:55:23 +08:00
|
|
|
:type git
|
|
|
|
:url "https://github.com/capitaomorte/yasnippet.git"
|
2010-12-26 20:53:20 +08:00
|
|
|
:features "yasnippet"
|
2011-12-21 05:55:48 +08:00
|
|
|
:prepare (lambda ()
|
2011-06-06 02:58:48 +08:00
|
|
|
;; Set up the default snippets directory
|
|
|
|
;;
|
|
|
|
;; Principle: don't override any user settings
|
|
|
|
;; for yas/snippet-dirs, whether those were made
|
|
|
|
;; with setq or customize. If the user doesn't
|
|
|
|
;; want the default snippets, she shouldn't get
|
|
|
|
;; them!
|
|
|
|
(unless (or (boundp 'yas/snippet-dirs) (get 'yas/snippet-dirs 'customized-value))
|
2011-12-21 05:55:48 +08:00
|
|
|
(setq yas/snippet-dirs
|
2011-06-06 02:58:48 +08:00
|
|
|
(list (concat el-get-dir (file-name-as-directory "yasnippet") "snippets")))))
|
2012-02-19 02:30:26 +08:00
|
|
|
|
2011-02-25 05:03:47 +08:00
|
|
|
:post-init (lambda ()
|
2011-06-06 02:58:48 +08:00
|
|
|
;; Trick customize into believing the standard
|
|
|
|
;; value includes the default snippets.
|
|
|
|
;; yasnippet would probably do this itself,
|
|
|
|
;; except that it doesn't include an
|
|
|
|
;; installation procedure that sets up the
|
|
|
|
;; snippets directory, and thus doesn't know
|
|
|
|
;; where those snippets will be installed. See
|
|
|
|
;; http://code.google.com/p/yasnippet/issues/detail?id=179
|
2011-12-21 05:55:48 +08:00
|
|
|
(put 'yas/snippet-dirs 'standard-value
|
2011-06-06 02:58:48 +08:00
|
|
|
;; as cus-edit.el specifies, "a cons-cell
|
|
|
|
;; whose car evaluates to the standard
|
|
|
|
;; value"
|
|
|
|
(list (list 'quote
|
|
|
|
(list (concat el-get-dir (file-name-as-directory "yasnippet") "snippets"))))))
|
2011-06-27 04:35:30 +08:00
|
|
|
;; byte-compile load vc-svn and that fails
|
|
|
|
;; see https://github.com/dimitri/el-get/issues/200
|
2012-02-19 02:30:26 +08:00
|
|
|
:compile nil
|
|
|
|
:submodule nil)
|