diff options
author | 2020-04-25 16:06:36 -0400 | |
---|---|---|
committer | 2020-04-25 16:10:23 -0400 | |
commit | 1eb203130bcee485d5abaead5dc7ee723a49d864 (patch) | |
tree | 659d3c4c42f97272fd18082a65eaf0ee7376f765 /lisp/bandali-yasnippet.el | |
parent | 8146824a5a0175e7e51e5cba82ef88cf105ef50d (diff) | |
download | configs-1eb203130bcee485d5abaead5dc7ee723a49d864.tar.gz configs-1eb203130bcee485d5abaead5dc7ee723a49d864.tar.xz configs-1eb203130bcee485d5abaead5dc7ee723a49d864.zip |
Assimilate 8 drones
Assimilate boxquote v2.1-1-g7e47e0e
Assimilate expand-region 0.11.0-36-gea6b4cb
Assimilate hl-todo v3.1.1-2-g3bba459
Assimilate orgalist b436971
Assimilate page-break-lines 0.11-29-g314b397
Assimilate unkillable-scratch 1.0.0-5-gb24c2a7
Assimilate which-key v3.4.0-24-g8b49ae9
Assimilate yasnippet 0.14.0-6-g5b1217a
Also, remove some unused (use-package ...) forms.
Diffstat (limited to '')
-rw-r--r-- | lisp/bandali-yasnippet.el | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/lisp/bandali-yasnippet.el b/lisp/bandali-yasnippet.el new file mode 100644 index 0000000..6cdbc7a --- /dev/null +++ b/lisp/bandali-yasnippet.el @@ -0,0 +1,26 @@ +(use-package yasnippet + :defer 0.6 + :config + (declare-function yas-reload-all + "yasnippet" (&optional no-jit interactive)) + (declare-function yas-maybe-expand-abbrev-key-filter + "yasnippet" (cmd)) + + (defconst yas-verbosity-cur yas-verbosity) + (setq yas-verbosity 2) + (add-to-list 'yas-snippet-dirs "~/src/git/guix/etc/snippets" t) + (yas-reload-all) + (setq yas-verbosity yas-verbosity-cur) + + (defun b/yas-maybe-expand-abbrev-key-filter (cmd) + (when (and (yas-maybe-expand-abbrev-key-filter cmd) + (not (bound-and-true-p git-commit-mode))) + cmd)) + (defconst b/yas-maybe-expand + '(menu-item "" yas-expand :filter b/yas-maybe-expand-abbrev-key-filter)) + (define-key yas-minor-mode-map + (kbd "SPC") b/yas-maybe-expand) + + (yas-global-mode)) + +(provide 'bandali-yasnippet) |