From 3c98222dfed935e4fd0feee08922cc87b4b7dc11 Mon Sep 17 00:00:00 2001 From: Alexander Rosenberg Date: Fri, 8 Mar 2024 23:27:07 -0800 Subject: [PATCH] Fix go line indent error --- init.el | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/init.el b/init.el index 250f093..15cf777 100644 --- a/init.el +++ b/init.el @@ -769,14 +769,11 @@ COMMAND and COMINT are like `compile'." (add-to-list 'auto-mode-alist '("\\.php\\|\\.phtml\\'" . my/poly-web-mode))) ;; go mode -(use-package go-mode) +(use-package go-mode + :defer nil) (use-package go-ts-mode :ensure nil - :hook ((go-ts-mode . eglot-ensure) - (go-ts-mode . my/-setup-go-ts-mode)) - :init - (defun my/-setup-go-ts-mode () - (setq-local indent-line-function #'go-mode-indent-line))) + :hook (go-ts-mode . eglot-ensure)) ;; rust (use-package rust-mode)