V2 Emacs config now kept as it's own repository.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
1.1 KiB

2 years ago
;; Default mode definitions.
;;; Code:
;; 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
:ensure t
:init (add-hook 'prog-mode-hook 'rainbow-identifiers-mode))
2 years ago
;; 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))
2 years ago
(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))
2 years ago
(with-eval-after-load 'magit-mode
(add-hook 'after-save-hook 'magit-after-save-refresh-status t))