emacs: fix *-ts-mode-hook aliasing
Alan Pearce alan@alanpearce.eu
Sun, 12 May 2024 12:42:30 +0200
1 files changed, 5 insertions(+), 10 deletions(-)
jump to
M user/emacs/init.el → user/emacs/init.el
@@ -1008,20 +1008,15 @@ :defer t :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