emacs: enable yasnippet globally and add a couple of snippets
[~bandali/configs] / .emacs.d / init.el
index ae707ad..42b2c79 100644 (file)
@@ -1481,6 +1481,8 @@ For disabling the behaviour for certain buffers and/or modes."
 (use-package page-break-lines
   :defer 0.5
   :delight " pgln"
+  :custom
+  (page-break-lines-max-width fill-column)
   :config
   (global-page-break-lines-mode))
 
@@ -1506,11 +1508,10 @@ For disabling the behaviour for certain buffers and/or modes."
   :config
   (defconst yas-verbosity-cur yas-verbosity)
   (setq yas-verbosity 2)
-  (add-to-list 'yas-snippet-dirs "~/src/git/guix/etc/snippets")
+  (add-to-list 'yas-snippet-dirs "~/src/git/guix/etc/snippets" t)
   (yas-reload-all)
   (setq yas-verbosity yas-verbosity-cur)
-  :hook
-  (text-mode . yas-minor-mode))
+  (yas-global-mode))
 
 (use-package debbugs
   :straight (debbugs
@@ -1535,6 +1536,8 @@ For disabling the behaviour for certain buffers and/or modes."
   :init
   (setq xref-show-xrefs-function #'ivy-xref-show-xrefs))
 
+;; (use-package fill-column-indicator)
+
 \f
 ;;; Email (with Gnus)