summary refs log tree commit diff stats
path: root/user/emacs
diff options
context:
space:
mode:
authorAlan Pearce2024-05-03 11:47:57 +0200
committerAlan Pearce2024-05-03 11:47:57 +0200
commit43b455c8f9aa26c611e5089e8e4ac3632298f93a (patch)
tree1aacc1c78c14a8e6acd961ae965f6236e34edf26 /user/emacs
parentb6c803102401ac3125b39cd6d4ff72ba38f599de (diff)
downloadnixfiles-43b455c8f9aa26c611e5089e8e4ac3632298f93a.tar.lz
nixfiles-43b455c8f9aa26c611e5089e8e4ac3632298f93a.tar.zst
nixfiles-43b455c8f9aa26c611e5089e8e4ac3632298f93a.zip
emacs: make ts-mode hooks always reflect their non-ts mode hooks
Diffstat (limited to 'user/emacs')
-rw-r--r--user/emacs/init.el10
1 files changed, 5 insertions, 5 deletions
diff --git a/user/emacs/init.el b/user/emacs/init.el
index 60417b95..670334f3 100644
--- a/user/emacs/init.el
+++ b/user/emacs/init.el
@@ -1003,19 +1003,19 @@ _C-k_: prev  _u_pper              _=_: upper/lower       _s_mart resolve
             (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