On my config i have too many add-hook
,Is there any way to merge them and make them more beautiful.
(add-hook 'go-mode-hook #'my-go-project-setup)
(add-hook 'go-mode-hook #'lsp-deferred)
(add-hook 'go-mode-hook #'lsp-go-install-save-hooks)
(add-hook 'go-mode-hook #'rainbow-delimiters-mode)
(add-hook 'go-mode-hook #'galaxy/go-defun-setup)
maybe write a macro is best? then it will like this? how to write this macro or other best way?
(add-hook-x 'go-mode-hook #'lsp-deferred
#'lsp-go-instal-save-hooks
...)