mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
fix(csharp): csharp-ts-mode: side-effects on auto-mode-alist
Would otherwise be imposed every time the mode is activated.
This commit is contained in:
@ -50,6 +50,14 @@ on for `csharp-mode' font lock breaks after an interpolated string
|
||||
or terminating simple string."
|
||||
:around #'csharp-disable-clear-string-fences
|
||||
(unless (eq major-mode 'csharp-mode)
|
||||
(apply fn args)))
|
||||
|
||||
;; HACK: `csharp-ts-mode' changes `auto-mode-alist' every time the mode is
|
||||
;; activated, which runs the risk of overwriting user (or Doom) entries.
|
||||
;; REVIEW: Should be addressed upstream.
|
||||
(defadvice! +csharp--undo-ts-side-effects-a (fn &rest args)
|
||||
:around #'csharp-ts-mode
|
||||
(let (auto-mode-alist)
|
||||
(apply fn args))))
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user