Slightly reorder config.el for convenience
This commit is contained in:
parent
d06b903d3b
commit
79e8a4d0e3
16
config.el
16
config.el
@ -101,10 +101,6 @@
|
|||||||
(advice-remove 'newline-and-indent
|
(advice-remove 'newline-and-indent
|
||||||
#'+default--newline-indent-and-continue-comments-a)
|
#'+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.
|
;; Add some extra whitespace highlights to doom's opinion.
|
||||||
(advice-add 'doom-highlight-non-default-indentation-h
|
(advice-add 'doom-highlight-non-default-indentation-h
|
||||||
:after
|
:after
|
||||||
@ -112,6 +108,10 @@
|
|||||||
(appendq! whitespace-style '(trailing lines-tail empty))
|
(appendq! whitespace-style '(trailing lines-tail empty))
|
||||||
(whitespace-mode +1))))
|
(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.
|
;; Additional coniguration for doom modules.
|
||||||
;; -----------------------------------------------------------------------------
|
;; -----------------------------------------------------------------------------
|
||||||
@ -119,10 +119,6 @@
|
|||||||
;; Disable hl-line-mode everywhere.
|
;; Disable hl-line-mode everywhere.
|
||||||
(after! hl-line (setq global-hl-line-modes nil))
|
(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.
|
;; Don't use the LSP formatter.
|
||||||
(after! lsp (setq +format-with-lsp nil))
|
(after! lsp (setq +format-with-lsp nil))
|
||||||
|
|
||||||
@ -130,6 +126,10 @@
|
|||||||
(after! lsp-pyright
|
(after! lsp-pyright
|
||||||
(setq lsp-pyright-venv-path (concat (getenv "HOME") "/.virtualenvs")))
|
(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.
|
;; Rainbow delimiters in all prog-mode buffers.
|
||||||
(add-hook! prog-mode #'rainbow-delimiters-mode-enable)
|
(add-hook! prog-mode #'rainbow-delimiters-mode-enable)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user