Fix the cursor setting when a snippet is available

This commit is contained in:
Gergely Polonkai 2017-09-25 11:07:02 +02:00
parent 535617dde3
commit 88db7d8ee6
2 changed files with 3 additions and 2 deletions

View File

@ -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"))

View File

@ -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.