|
|
@ -2,9 +2,11 @@ |
|
|
|
|
|
|
|
|
|
|
|
;;; Code: |
|
|
|
;;; Code: |
|
|
|
;; Easier to identify identifiers |
|
|
|
;; Easier to identify identifiers |
|
|
|
|
|
|
|
;; The init add-hook seems to be the only way this works. |
|
|
|
|
|
|
|
;; :hook does not work with rainbow identifiers for some reason. |
|
|
|
(use-package rainbow-identifiers |
|
|
|
(use-package rainbow-identifiers |
|
|
|
:ensure t |
|
|
|
:ensure t |
|
|
|
:hook ((prog-mode-hook . rainbow-identifiers-mode))) |
|
|
|
:init (add-hook 'prog-mode-hook 'rainbow-identifiers-mode)) |
|
|
|
|
|
|
|
|
|
|
|
;; Flycheck is enabled globally. |
|
|
|
;; Flycheck is enabled globally. |
|
|
|
(use-package flycheck |
|
|
|
(use-package flycheck |
|
|
@ -31,8 +33,8 @@ |
|
|
|
:commands (lsp lsp-deferred)) |
|
|
|
:commands (lsp lsp-deferred)) |
|
|
|
|
|
|
|
|
|
|
|
(use-package lsp-ui |
|
|
|
(use-package lsp-ui |
|
|
|
:ensure t |
|
|
|
:ensure t |
|
|
|
:hook (lsp-mode . lsp-ui-mode)) |
|
|
|
:hook (lsp-mode . lsp-ui-mode)) |
|
|
|
|
|
|
|
|
|
|
|
(with-eval-after-load 'magit-mode |
|
|
|
(with-eval-after-load 'magit-mode |
|
|
|
(add-hook 'after-save-hook 'magit-after-save-refresh-status t)) |
|
|
|
(add-hook 'after-save-hook 'magit-after-save-refresh-status t)) |
|
|
|