Rewrote indentation detection
More robust and easier to customize.
This commit is contained in:
parent
088480047c
commit
35e5a47e9f
5 changed files with 31 additions and 17 deletions
|
@ -71,6 +71,8 @@ You should use `det-eshell-alias!' to change this.")
|
|||
eshell-glob-case-insensitive t
|
||||
eshell-error-if-no-glob t)
|
||||
|
||||
(add-to-list 'doom-detect-indentation-excluded-modes 'eshell-mode nil #'eq)
|
||||
|
||||
;; Consider eshell buffers real
|
||||
(add-hook 'eshell-mode-hook #'doom|mark-buffer-as-real)
|
||||
|
||||
|
|
|
@ -8,4 +8,5 @@
|
|||
(after! term
|
||||
(set-env! "SHELL")
|
||||
|
||||
(add-hook 'term-mode-hook #'doom|mark-buffer-as-real))
|
||||
(add-hook 'term-mode-hook #'doom|mark-buffer-as-real)
|
||||
(add-to-list 'doom-detect-indentation-excluded-modes 'term-mode nil #'eq))
|
||||
|
|
|
@ -41,6 +41,9 @@
|
|||
("add-hook" "remove-hook")
|
||||
("add-hook!" "remove-hook!")))
|
||||
|
||||
;; variable-width indentation is superior in elisp
|
||||
(add-to-list 'doom-detect-indentation-excluded-modes 'emacs-lisp-mode nil #'eq)
|
||||
|
||||
(add-hook! 'emacs-lisp-mode-hook
|
||||
#'(;; 3rd-party functionality
|
||||
auto-compile-on-save-mode doom|enable-delete-trailing-whitespace
|
||||
|
|
|
@ -191,6 +191,9 @@ unfold to point on startup."
|
|||
org-preview-latex-image-directory (concat doom-cache-dir "org-latex/")
|
||||
org-format-latex-options (plist-put org-format-latex-options :scale 1.5))
|
||||
|
||||
;; Don't do automatic indent detection in org files
|
||||
(add-to-list 'doom-detect-indentation-excluded-modes 'org-mode nil #'eq)
|
||||
|
||||
;; Previews are usually rendered with light backgrounds, so ensure their
|
||||
;; background (and foreground) match the current theme.
|
||||
(defun +org|update-latex-preview-background-color ()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue