Slightly reorder config.el for convenience

This commit is contained in:
Wojciech Kozlowski 2022-04-10 23:38:27 +02:00
parent d06b903d3b
commit 79e8a4d0e3

View File

@ -101,10 +101,6 @@
(advice-remove 'newline-and-indent
#'+default--newline-indent-and-continue-comments-a)
;; I actually like it when Emacs recenters the screen while scrolling. This may
;; be an issue in large files. When that becomes an issue add an exception here.
(setq scroll-conservatively 0)
;; Add some extra whitespace highlights to doom's opinion.
(advice-add 'doom-highlight-non-default-indentation-h
:after
@ -112,6 +108,10 @@
(appendq! whitespace-style '(trailing lines-tail empty))
(whitespace-mode +1))))
;; I actually like it when Emacs recenters the screen while scrolling. This may
;; be an issue in large files. When that becomes an issue add an exception here.
(setq scroll-conservatively 0)
;; -----------------------------------------------------------------------------
;; Additional coniguration for doom modules.
;; -----------------------------------------------------------------------------
@ -119,10 +119,6 @@
;; Disable hl-line-mode everywhere.
(after! hl-line (setq global-hl-line-modes nil))
;; Always open magit in other window.
(after! magit
(setq magit-display-buffer-function #'magit-display-buffer-traditional))
;; Don't use the LSP formatter.
(after! lsp (setq +format-with-lsp nil))
@ -130,6 +126,10 @@
(after! lsp-pyright
(setq lsp-pyright-venv-path (concat (getenv "HOME") "/.virtualenvs")))
;; Always open magit in other window.
(after! magit
(setq magit-display-buffer-function #'magit-display-buffer-traditional))
;; Rainbow delimiters in all prog-mode buffers.
(add-hook! prog-mode #'rainbow-delimiters-mode-enable)