From 21189806fa778970ac4d85dde0ca0a1e461f4f10 Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Sun, 10 Jun 2018 08:21:50 +0200 Subject: [PATCH] Add cursor color changing hook to the proper place --- init.el | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/init.el b/init.el index a056cfa..ce042c5 100644 --- a/init.el +++ b/init.el @@ -679,7 +679,8 @@ (use-package yasnippet :demand :config - (yas-global-mode 1)) + (yas-global-mode 1) + (add-hook 'post-command-hook 'sachachua/change-cursor-color-when-can-expand)) (use-package vala-snippets :after @@ -1309,8 +1310,6 @@ TODO: What is FIELD for?" "Return true if right after an expandable thing." (or (abbrev--before-point) (yasnippet-can-fire-p))) -(add-hook 'post-command-hook 'sachachua/change-cursor-color-when-can-expand) - ;; SysAdmin Day to the calendar (add-to-list 'holiday-other-holidays '(holiday-float 7 5 -1 "SysAdmin Day") t) (add-to-list 'holiday-other-holidays '(holiday-fixed 10 21 "Reptile Awareness Day") t)