Files
.emacs.d/modules/editor/siren-auto-highlight-symbol.el
Jim Myhrberg fe6a4e7ce5 fix(elisp): add lexical-binding comment to all files to suppress new Emacs 31 warnings
I've set `lexical-binding` to `nil` in all Emacs Lisp files to suppress
the warnings introduced in Emacs 31 requiring all elisp files to have a
`lexical-binding` comment.

This retains the default behavior of dynamic binding when no
`lexical-binding` comment is present. With it set to `t` across the
board, various things break, and fixing those is a task for another day.
2025-06-29 12:23:03 +01:00

32 lines
875 B
EmacsLisp

;;; siren-auto-highlight-symbol.el --- jimeh's Emacs Siren: auto-highlight-symbol configuration. -*- lexical-binding: nil; -*-
;;; Commentary:
;; Basic configuration for auto-highlight-symbol.
;;; Code:
(require 'siren-doom-themes)
(use-package auto-highlight-symbol
:diminish auto-highlight-symbol-mode
:general
(:keymaps '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