summary refs log tree commit diff stats
path: root/user/emacs
diff options
context:
space:
mode:
authorAlan Pearce2024-05-12 12:42:30 +0200
committerAlan Pearce2024-05-12 12:42:30 +0200
commit8e93eff81f5e3c4170d233d77e5af8095e0d4582 (patch)
tree619cd075476d2cb8ba7dcd201afbb59122450554 /user/emacs
parent85bc898e159693c5238a311efff3867aadb28841 (diff)
downloadnixfiles-8e93eff81f5e3c4170d233d77e5af8095e0d4582.tar.lz
nixfiles-8e93eff81f5e3c4170d233d77e5af8095e0d4582.tar.zst
nixfiles-8e93eff81f5e3c4170d233d77e5af8095e0d4582.zip
emacs: fix *-ts-mode-hook aliasing
Diffstat (limited to 'user/emacs')
-rw-r--r--user/emacs/init.el15
1 files changed, 5 insertions, 10 deletions
diff --git a/user/emacs/init.el b/user/emacs/init.el
index 1361faea..a89f3a34 100644
--- a/user/emacs/init.el
+++ b/user/emacs/init.el
@@ -1008,20 +1008,15 @@ _C-k_: prev  _u_pper              _=_: upper/lower       _s_mart resolve
   :config (progn
             (setq treemacs-no-png-images t)))
 
-(if (boundp 'typescript-mode-hook)
-    (defvaralias 'typescript-ts-mode-hook 'typescript-mode-hook))
+(defvaralias 'typescript-ts-mode-hook 'typescript-mode-hook)
 
-(if (boundp 'dockerfile-mode-hook)
-    (defvaralias 'dockerfile-ts-mode-hook 'dockerfile-mode-hook))
+(defvaralias 'dockerfile-ts-mode-hook 'dockerfile-mode-hook)
 
-(if (boundp 'yaml-mode-hook)
-    (defvaralias 'yaml-ts-mode-hook 'yaml-mode-hook))
+(defvaralias 'yaml-ts-mode-hook 'yaml-mode-hook)
 
-(if (boundp 'go-mode-hook)
-    (defvaralias 'go-ts-mode-hook 'go-mode-hook))
+(defvaralias 'go-ts-mode-hook 'go-mode-hook)
 
-(if (boundp 'nix-mode-hook)
-    (defvaralias 'nix-ts-mode-hook 'nix-mode-hook))
+(defvaralias 'nix-ts-mode-hook 'nix-mode-hook)
 
 (use-package eglot
   :defer 3