Fix go line indent error
This commit is contained in:
parent
68b5afda96
commit
3c98222dfe
9
init.el
9
init.el
@ -769,14 +769,11 @@ COMMAND and COMINT are like `compile'."
|
|||||||
(add-to-list 'auto-mode-alist '("\\.php\\|\\.phtml\\'" . my/poly-web-mode)))
|
(add-to-list 'auto-mode-alist '("\\.php\\|\\.phtml\\'" . my/poly-web-mode)))
|
||||||
|
|
||||||
;; go mode
|
;; go mode
|
||||||
(use-package go-mode)
|
(use-package go-mode
|
||||||
|
:defer nil)
|
||||||
(use-package go-ts-mode
|
(use-package go-ts-mode
|
||||||
:ensure nil
|
:ensure nil
|
||||||
:hook ((go-ts-mode . eglot-ensure)
|
: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)))
|
|
||||||
|
|
||||||
;; rust
|
;; rust
|
||||||
(use-package rust-mode)
|
(use-package rust-mode)
|
||||||
|
Loading…
Reference in New Issue
Block a user