diff options
author | 2022-11-19 19:12:43 -0500 | |
---|---|---|
committer | 2022-11-19 19:12:43 -0500 | |
commit | b08fa2c1c27e54af7834900ee0a5ac392679b8f3 (patch) | |
tree | bdd161100bbe89f59a593e228545134e56b91605 /.emacs.d/init.el | |
parent | d05af11107c184fe8d59b89f66139229ad1aa51e (diff) | |
download | configs-b08fa2c1c27e54af7834900ee0a5ac392679b8f3.tar.gz configs-b08fa2c1c27e54af7834900ee0a5ac392679b8f3.tar.xz configs-b08fa2c1c27e54af7834900ee0a5ac392679b8f3.zip |
Drop YASnippet
I don't really need these or use them nearly as much as I used to.
For similar needs, I think I'll be able to get by using Emacs's own
Abbrev just fine.
Diffstat (limited to '.emacs.d/init.el')
-rw-r--r-- | .emacs.d/init.el | 31 |
1 files changed, 2 insertions, 29 deletions
diff --git a/.emacs.d/init.el b/.emacs.d/init.el index f8a44e7..525348d 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -60,8 +60,7 @@ ;; (debbugs "0.29") ;; (delight "1.7") ;; (emms "7.7") - ;; (rt-liberation "2.4") - ;; (yasnippet "0.14.0"))) + ;; (rt-liberation "2.4"))) (package-initialize)) (setq package-archive-upload-base "/ssh:caffeine:~/www/p/elpa") @@ -778,31 +777,6 @@ Effectively a very simple light/dark theme toggle switch." ;; Highlight TODO in buffers. (global-hl-todo-mode)) -(run-with-idle-timer 0.6 nil #'require 'yasnippet) -(with-eval-after-load 'yasnippet - (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 - yas-snippet-dirs `(,(b/etc "yasnippet/snippets"))) - ;; (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)) - ;; `debbugs' (global-set-key (kbd "C-c D d") #'debbugs-gnu) (global-set-key (kbd "C-c D b") #'debbugs-gnu-bugs) @@ -880,8 +854,7 @@ Effectively a very simple light/dark theme toggle switch." (with-eval-after-load 'delight (delight 'auto-fill-function " f" "simple") (delight 'abbrev-mode "" "abbrev") - (delight 'mml-mode " mml" "mml") - (delight 'yas-minor-mode "" "yasnippet")) + (delight 'mml-mode " mml" "mml")) (require 'bandali-po) |