From 571cd3934d499821576236f5f48c2d4d9fd67823 Mon Sep 17 00:00:00 2001 From: Daniel Borchmann Date: Fri, 20 Dec 2019 17:34:05 +0100 Subject: [PATCH] Globally enable yasnippet --- init.el | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/init.el b/init.el index 6b8629a..8395524 100644 --- a/init.el +++ b/init.el @@ -117,7 +117,8 @@ minions-mode which-key-mode eyebrowse-mode - projectile-mode)) + projectile-mode + yas-global-mode)) (with-demoted-errors "Cannot activate mode: %s" (funcall mode +1))) @@ -144,7 +145,6 @@ (add-hook 'prog-mode-hook 'electric-indent-local-mode)) (add-hook 'text-mode-hook 'turn-on-auto-fill) - (add-hook 'text-mode-hook 'yas-minor-mode-on) ;; Auto-Modes @@ -2367,7 +2367,6 @@ With given ARG, display files in `db/important-document-path’." (dopar 'defun)) (add-hook 'clojure-mode-hook 'turn-on-lispy-when-available) (add-hook 'clojure-mode-hook 'clj-refactor-mode) - (add-hook 'clojure-mode-hook 'yas-minor-mode) (add-hook 'clojure-mode-hook 'company-mode))) (use-package clj-refactor @@ -2809,7 +2808,7 @@ With given ARG, display files in `db/important-document-path’." (use-package yasnippet :ensure t - :commands (yas-minor-mode-on yas-minor-mode) + :commands (yas-minor-mode-on yas-minor-mode yas-global-mode) :diminish yas-minor-mode :config (yas-reload-all))