From 88db7d8ee66f4326caf113640d1fbc53238b98fe Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Mon, 25 Sep 2017 11:07:02 +0200 Subject: [PATCH] Fix the cursor setting when a snippet is available --- customizations.el | 2 +- init.el | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/customizations.el b/customizations.el index 2c01784..61c03d9 100644 --- a/customizations.el +++ b/customizations.el @@ -7,7 +7,7 @@ '(background-mode dark) '(blink-cursor-mode t) '(column-number-mode t) - '(cursor-color "#5c5cff") + '(cursor-color "#ffd85c") '(cursor-type (quote bar)) '(custom-enabled-themes (quote (tango))) '(custom-file (concat user-emacs-directory "customizations.el")) diff --git a/init.el b/init.el index b60af99..bc8a892 100644 --- a/init.el +++ b/init.el @@ -1250,7 +1250,8 @@ INFO plist." (helm-execute-persistent-action) (insert "/"))) -(setq default-cursor-color (frame-parameter nil 'cursor-colbxuor)) +;; TODO: 'cursor-color is sometimes nil, but why? +(setq default-cursor-color (or (frame-parameter nil 'cursor-color) "#ffd85c")) (setq yasnippet-can-fire-cursor-color "purple") ;; It will test whether it can expand, if yes, cursor color -> purple.