mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
It turns out that auto-highlight-symbol is a bit more advanced, with a MUCH nicer edit symbol feature than highlight-symbol does.
32 lines
833 B
EmacsLisp
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
|