From 85cc75a5f67c77acdea38c0d23ddf1cf4d83f19b Mon Sep 17 00:00:00 2001 From: Ian Kelling Date: Tue, 1 Jul 2014 17:40:29 -0700 Subject: [PATCH] fix highlight-symbol integration --- spray.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/spray.el b/spray.el index afefae2..8f25a93 100644 --- a/spray.el +++ b/spray.el @@ -118,10 +118,13 @@ buffer-face-mode buffer-face-mode-face) spray--saved-smartparens-enabled (and (boundp 'smartparens-mode) - smartparens-mode)) + smartparens-mode) + spray--saved-highlight-symbol-enabled (and (boundp 'highlight-symbol-mode) + highlight-symbol-mode)) ;; smartparens wrapping of all letter binds can cause problems. ;; for example, it can cause auto-complete to activate (and spray--saved-smartparens-enabled (smartparens-mode -1)) + (and spray--saved-highlight-symbol-enabled (highlight-symbol-mode -1)) (setq cursor-type nil) (let ((buffer-face-mode-face `(:height ,spray-height))) (buffer-face-mode 1)) @@ -132,6 +135,7 @@ (spray-start)) (t (and spray--saved-smartparens-enabled (smartparens-mode 1)) + (and spray--saved-highlight-symbol-enabled (highlight-symbol-mode 1)) (setq cursor-type spray--saved-cursor-type) (if spray--saved-restriction (narrow-to-region (car spray--saved-restriction) -- 2.30.2