all repos — nixfiles @ 43b455c8f9aa26c611e5089e8e4ac3632298f93a

System and user configuration, managed by nix and home-manager

emacs: make ts-mode hooks always reflect their non-ts mode hooks

Alan Pearce
commit

43b455c8f9aa26c611e5089e8e4ac3632298f93a

parent

b6c803102401ac3125b39cd6d4ff72ba38f599de

1 file changed, 5 insertions(+), 5 deletions(-)

jump to
M user/emacs/init.eluser/emacs/init.el
@@ -1003,19 +1003,19 @@ :config (progn
(setq treemacs-no-png-images t))) (if (boundp 'typescript-mode-hook) - (setq typescript-ts-mode-hook typescript-mode-hook)) + (defvaralias typescript-ts-mode-hook typescript-mode-hook)) (if (boundp 'dockerfile-mode-hook) - (setq dockerfile-ts-mode-hook dockerfile-mode-hook)) + (defvaralias dockerfile-ts-mode-hook dockerfile-mode-hook)) (if (boundp 'yaml-mode-hook) - (setq yaml-ts-mode-hook yaml-mode-hook)) + (defvaralias yaml-ts-mode-hook yaml-mode-hook)) (if (boundp 'go-mode-hook) - (setq go-ts-mode-hook go-mode-hook)) + (defvaralias go-ts-mode-hook go-mode-hook)) (if (boundp 'nix-mode-hook) - (setq nix-ts-mode-hook nix-mode-hook)) + (defvaralias nix-ts-mode-hook nix-mode-hook)) (use-package eglot :defer 3