mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
refactor: use true eos regex in auto-mode-alist entries
"\\'" will match the true end-of-string, whereas "$" will also match just before a newline character. Not that there's much risk that there'll be newlines in a filepath, but I'd rather be consistent. It also makes these entries easier for users to remove from auto-mode-alist.
This commit is contained in:
@ -47,7 +47,7 @@ If the depth is 2, the first two directories are removed: net.lissner.game.")
|
||||
|
||||
|
||||
(use-package! groovy-mode
|
||||
:mode "\\.g\\(?:radle\\|roovy\\)$"
|
||||
:mode "\\.g\\(?:radle\\|roovy\\)\\'"
|
||||
:config
|
||||
(set-docsets! 'groovy-mode "Groovy" "Groovy_JDK")
|
||||
(set-eval-handler! 'groovy-mode "groovy")
|
||||
|
Reference in New Issue
Block a user