Apply whitespace much less aggressively
This commit is contained in:
parent
a9d196c904
commit
20dc5b7887
@ -40,11 +40,10 @@ NAME and ARGS are in `use-package'."
|
|||||||
(use-package whitespace
|
(use-package whitespace
|
||||||
:straight (:type built-in)
|
:straight (:type built-in)
|
||||||
:defer 1
|
:defer 1
|
||||||
:diminish global-whitespace-mode
|
:diminish whitespace-mode
|
||||||
:custom
|
:custom
|
||||||
(whitespace-style '(face lines-tail))
|
(whitespace-style '(face lines-tail))
|
||||||
(whitespace-line-column 80)
|
(whitespace-line-column 80)
|
||||||
:config (global-whitespace-mode t))
|
|
||||||
(use-package eshell
|
(use-package eshell
|
||||||
:straight (:type built-in)
|
:straight (:type built-in)
|
||||||
:commands (eshell/emacs eshell/man)
|
:commands (eshell/emacs eshell/man)
|
||||||
@ -464,16 +463,11 @@ targets."
|
|||||||
(org-hide-leading-stars t)
|
(org-hide-leading-stars t)
|
||||||
(org-startup-indented t)
|
(org-startup-indented t)
|
||||||
:config
|
:config
|
||||||
(defun local-disable-whitespace ()
|
|
||||||
"Disable whitespace-mode in the current buffer."
|
|
||||||
(setq-local whitespace-style nil))
|
|
||||||
(add-hook 'after-save-hook
|
(add-hook 'after-save-hook
|
||||||
#'(lambda () (if (equal major-mode 'org-mode)
|
#'(lambda () (if (equal major-mode 'org-mode)
|
||||||
(org-babel-tangle))))
|
(org-babel-tangle))))
|
||||||
(add-hook 'org-mode-hook
|
|
||||||
(local-disable-whitespace))
|
|
||||||
:hook (org-mode . turn-off-line-numbers))
|
:hook (org-mode . turn-off-line-numbers))
|
||||||
(use-package org-tempo
|
(use-feature org-tempo
|
||||||
:straight (:type built-in)
|
:straight (:type built-in)
|
||||||
:after org
|
:after org
|
||||||
:config
|
:config
|
||||||
|
Loading…
Reference in New Issue
Block a user