add magit i guess

This commit is contained in:
Lucas Barbieri 2024-04-16 20:13:43 -03:00
parent 28fee50596
commit 5a9c8cd201
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@
;; Your init file should contain only one such instance. ;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right. ;; If there is more than one, they won't work right.
'(package-selected-packages '(package-selected-packages
'(go-mode yasnippet-snippets yasnippet which-key powerline-evil helm doom-themes corfu company-fuzzy beacon))) '(magit yasnippet-snippets which-key powerline-evil helm go-mode doom-themes corfu company-fuzzy beacon)))
(custom-set-faces (custom-set-faces
;; custom-set-faces was added by Custom. ;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful. ;; If you edit it by hand, you could mess it up, so be careful.

View File

@ -139,7 +139,7 @@
;; Optional: install eglot-format-buffer as a save hook. ;; Optional: install eglot-format-buffer as a save hook.
;; The depth of -10 places this before eglot's willSave notification, ;; The depth of -10 places this before eglot's willSave notification,
;; so that that notification reports the actual contents that will be saved. ;; so that that notification reports the actual contents that will be saved.
(defun eglot-format-buffer-on-save () (defun eglot-format-buffer-on-save ()
(add-hook 'before-save-hook #'eglot-format-buffer -10 t)) (add-hook 'before-save-hook #'eglot-format-buffer -10 t))
(add-hook 'go-mode-hook #'eglot-format-buffer-on-save) (add-hook 'go-mode-hook #'eglot-format-buffer-on-save)