|
|
|
;; Default mode definitions.
|
|
|
|
|
|
|
|
;;; Code:
|
|
|
|
;; Easier to identify identifiers
|
|
|
|
(use-package color-identifiers-mode
|
|
|
|
:ensure t
|
|
|
|
:init (add-hook 'after-init-hook 'global-color-identifiers-mode)
|
|
|
|
:config
|
|
|
|
(setq color-identifiers:recoloring-delay 1))
|
|
|
|
|
|
|
|
;; Flycheck is enabled globally.
|
|
|
|
(use-package flycheck
|
|
|
|
:ensure t
|
|
|
|
:hook ((after-init . global-flycheck-mode)))
|
|
|
|
|
|
|
|
;; Company is enabled globally.
|
|
|
|
(use-package company
|
|
|
|
:ensure t
|
|
|
|
:hook ((after-init . global-company-mode))
|
|
|
|
:config ;; backend setting must be done only after load.
|
|
|
|
(push 'company-files company-backends)
|
|
|
|
(push 'company-keywords company-backends)
|
|
|
|
(push 'company-capf company-backends))
|
|
|
|
|
|
|
|
(use-package projectile
|
|
|
|
:ensure t
|
|
|
|
:bind-keymap
|
|
|
|
("C-c p" . projectile-command-map))
|
|
|
|
|
|
|
|
(use-package lsp-mode
|
|
|
|
:ensure t
|
|
|
|
:hook ((python-mode . lsp-deferred))
|
|
|
|
:commands (lsp lsp-deferred))
|
|
|
|
|
|
|
|
(use-package lsp-ui
|
|
|
|
:ensure t
|
|
|
|
:hook (lsp-mode . lsp-ui-mode))
|
|
|
|
|
|
|
|
(with-eval-after-load 'magit-mode
|
|
|
|
(add-hook 'after-save-hook 'magit-after-save-refresh-status t))
|