mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
There are a few major modes which are not based on prog-mode, that I want to behave like prog-mode. Previously each did nearly all the same setup that's done via the prog-mode hooks. Now instead let's actually run runs the hooks for prog-mode.
26 lines
582 B
EmacsLisp
26 lines
582 B
EmacsLisp
;;; siren-highlight-symbol.el --- jimeh's Emacs Siren: highlight-symbol configuration.
|
|
|
|
;;; Commentary:
|
|
|
|
;; Basic configuration for highlight-symbol.
|
|
|
|
;;; Code:
|
|
|
|
(use-package highlight-symbol
|
|
:diminish highlight-symbol-mode
|
|
|
|
:bind
|
|
("C-c C-p" . highlight-symbol-prev)
|
|
("C-c C-n" . highlight-symbol-next)
|
|
("C-c C-r" . highlight-symbol-query-replace)
|
|
|
|
:hook
|
|
(prog-mode . highlight-symbol-mode)
|
|
|
|
:custom
|
|
(highlight-symbol-highlight-single-occurrence 'nil)
|
|
(highlight-symbol-idle-delay 0.5))
|
|
|
|
(provide 'siren-highlight-symbol)
|
|
;;; siren-highlight-symbol.el ends here
|