mirror of
https://github.com/dimitri/el-get.git
synced 2024-09-30 05:29:52 +08:00
7d15faed65
This automated convertsion was done with the following sequence of commands: cd recipes # Replace :url with :pkgname "user/repo" perl -iBAK -lape 's{^(\s*):url\s+".*github.com/([^/]+)/([^.]+)\.git"}{$1:pkgname "$2/$3"}' *.rcp # Change :type from git to github if recipe has a :pkgname property for x in *.rcp; do if grep -q ":type.*git" $x && grep -q ":pkgname" $x; then perl -iBAK2 -lape 's/:type\s+git\b/:type github/g' $x; fi; done # Clean up backup files rm -f *BAK *BAK2 cd .. These commands may be repeated at any time in the future to convert newly-added recipes.
38 lines
2.0 KiB
Plaintext
38 lines
2.0 KiB
Plaintext
(:name yasnippet
|
|
:website "https://github.com/capitaomorte/yasnippet.git"
|
|
:description "YASnippet is a template system for Emacs."
|
|
:type github
|
|
:pkgname "capitaomorte/yasnippet"
|
|
:features "yasnippet"
|
|
:prepare (lambda ()
|
|
;; 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))
|
|
(setq yas/snippet-dirs
|
|
(list (concat el-get-dir (file-name-as-directory "yasnippet") "snippets")))))
|
|
|
|
:post-init (lambda ()
|
|
;; 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
|
|
(put 'yas/snippet-dirs 'standard-value
|
|
;; 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"))))))
|
|
;; byte-compile load vc-svn and that fails
|
|
;; see https://github.com/dimitri/el-get/issues/200
|
|
:compile nil
|
|
:submodule nil)
|