Skip to content

Instantly share code, notes, and snippets.

@enisozgen
Created October 21, 2017 18:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save enisozgen/82e785fd10c9b39bc3fef5015679393f to your computer and use it in GitHub Desktop.
Save enisozgen/82e785fd10c9b39bc3fef5015679393f to your computer and use it in GitHub Desktop.
Fast highlight options that I use
(setq enis-highlight-symbol-packages
'(
highlight-symbol
))
(defun enis-highlight-symbol/init-highlight-symbol ()
(use-package highlight-symbol
:config
(setq highlight-symbol-idle-delay 0.01)
;; (add-hook 'prog-mode-hook #'highlight-symbol-mode)
(setq highlight-symbol-colors
(quote
;; Colors are
("dark blue" "dark red" "dark magenta" "IndianRed4" "LightGoldenrod3" "violet red" "DeepSkyBlue4")))))
;; That part is callling functions really fast you can configure that party how ever you want
;; Additionally, I am spacemacs/symbol-highlight to edit all highlighted words, this function is also well but it's not permanent
;; (defhydra hydra-highlight (global-map "<f2>" (:color blue :columns 8))
;; "Highlight symbol"
;; ("hh" highlight-symbol "highlight-symbol")
;; ("hn" highlight-symbol-next "highlight-symbol-next")
;; ("hp" highlight-symbol-prev "highlight-symbol-prev"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment