Open ChoppinBlockParty opened 6 years ago
try this:
(defadvice highlight-symbol-get-symbol (around my-highlight-symbol-get-symbol activate)
(if (use-region-p)
(setq ad-return-value (buffer-substring (region-beginning) (region-end)))
ad-do-it
)
)
try this:
(defadvice highlight-symbol-get-symbol (around my-highlight-symbol-get-symbol activate) (if (use-region-p) (setq ad-return-value (buffer-substring (region-beginning) (region-end))) ad-do-it ) )
it does not work in spacemacs. I don't know why.
I wonder if there is an option to highlight selection. I think that would be super helpful. I am using evil, is it possible to highlight pattern selected in visual mode?