Files
.emacs.d/modules/editor/siren-auto-highlight-symbol.el
Jim Myhrberg 045520a603 feat(editor): Use auto-highlight-symbol instead of highlight-symbol
It turns out that auto-highlight-symbol is a bit more advanced, with a
MUCH nicer edit symbol feature than highlight-symbol does.
2020-03-06 18:35:11 +00:00

32 lines
833 B
EmacsLisp

;;; siren-auto-highlight-symbol.el --- jimeh's Emacs Siren: auto-highlight-symbol configuration.
;;; Commentary:
;; Basic configuration for auto-highlight-symbol.
;;; Code:
(require 'siren-doom-themes)
(use-package auto-highlight-symbol
:diminish auto-highlight-symbol-mode
:bind
(:map auto-highlight-symbol-mode-map
("C-c C-p" . ahs-backward)
("C-c C-n" . ahs-forward)
("C-c C-r" . ahs-edit-mode))
:hook
(prog-mode . auto-highlight-symbol-mode)
:custom
(ahs-default-range 'ahs-range-whole-buffer)
(ahs-idle-interval 1.0)
(auto-highlight-symbol-mode-map (make-sparse-keymap))
;; TODO: Fix exclusions, they don't seem to work.
(ahs-exclude '((ruby-mode . "\_<\(end\|def\|class\|module\)\_>"))))
(provide 'siren-auto-highlight-symbol)
;;; siren-auto-highlight-symbol.el ends here