mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-13 13:13:03 +00:00
* minor adjustments to bundle generation.
* *NOW* will probably tag 0.6.1c
This commit is contained in:
parent
97e7491dfa
commit
5d0b9657e3
18
yasnippet.el
18
yasnippet.el
@ -1563,14 +1563,20 @@ Here's the default value for all the parameters:
|
||||
(dolist (subdir (yas/subdirs dir))
|
||||
(yas/load-directory-1 subdir nil 'no-hierarchy-parents))))
|
||||
|
||||
(insert " (yas/global-mode 1)\n")
|
||||
(insert (pp-to-string `(yas/global-mode 1)))
|
||||
(insert ")\n\n" code "\n")
|
||||
|
||||
;; bundle-specific provide and value for yas/dont-activate
|
||||
(let ((bundle-feature-name (file-name-nondirectory
|
||||
(file-name-sans-extension
|
||||
yasnippet-bundle))))
|
||||
(insert (pp-to-string `(set-default 'yas/dont-activate
|
||||
#'(lambda ()
|
||||
(and (or yas/root-directory
|
||||
(featurep ',(make-symbol bundle-feature-name)))
|
||||
(null (yas/get-snippet-tables)))))))
|
||||
(insert (pp-to-string `(provide ',(make-symbol bundle-feature-name)))))
|
||||
|
||||
(insert "(provide '"
|
||||
(file-name-nondirectory
|
||||
(file-name-sans-extension
|
||||
yasnippet-bundle))
|
||||
")\n")
|
||||
(insert ";;; "
|
||||
(file-name-nondirectory yasnippet-bundle)
|
||||
" ends here\n"))))
|
||||
|
Loading…
x
Reference in New Issue
Block a user