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:
parent
1fad466c12
commit
ebf91a1363
5 changed files with 5 additions and 5 deletions
|
@ -9,7 +9,7 @@
|
|||
;;; Packages
|
||||
|
||||
(use-package! rustic
|
||||
:mode ("\\.rs$" . rustic-mode)
|
||||
:mode ("\\.rs\\'" . rustic-mode)
|
||||
:preface
|
||||
;; HACK `rustic' sets up some things too early. I'd rather disable it and let
|
||||
;; our respective modules standardize how they're initialized.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue