about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2021-01-08 08:47:12 -0600
committerCase Duckworth2021-01-08 08:47:12 -0600
commitf3cb8490ee1a998dfd99ee09b73fd63023ad4c3f (patch)
tree895cb2fcd548e94370784af24f539bf967ca2d2f
parentAdd super-save (diff)
downloademacs-f3cb8490ee1a998dfd99ee09b73fd63023ad4c3f.tar.gz
emacs-f3cb8490ee1a998dfd99ee09b73fd63023ad4c3f.zip
Only cleanup whitespace when the window is unfocused
-rw-r--r--config.org8
1 files changed, 6 insertions, 2 deletions
diff --git a/config.org b/config.org index 7ddc579..c945012 100644 --- a/config.org +++ b/config.org
@@ -5,7 +5,7 @@
5#+EXPORT_FILE_NAME: README.md 5#+EXPORT_FILE_NAME: README.md
6#+OPTIONS: toc:nil 6#+OPTIONS: toc:nil
7#+BANKRUPTCY_COUNT: 3.2 7#+BANKRUPTCY_COUNT: 3.2
8#+Time-stamp: <2021-01-07 19:41:59 acdw> 8#+Time-stamp: <2021-01-08 08:46:01 acdw>
9 9
10* Basics 10* Basics
11 11
@@ -1094,7 +1094,11 @@ For right now, I’m /just/ using Anzu – I don’t like parts of =isearch= but
1094 space-before-tab ;; fix mixed spaces and tabs 1094 space-before-tab ;; fix mixed spaces and tabs
1095 space-after-tab)) 1095 space-after-tab))
1096 1096
1097 (add-hook 'before-save-hook #'whitespace-cleanup) 1097 (defun acdw/whitespace-cleanup-maybe ()
1098 "Only cleanup whitespace when out-of-focus."
1099 (acdw/when-unfocused #'whitespace-cleanup))
1100
1101 (add-hook 'before-save-hook #'acdw/whitespace-cleanup-maybe)
1098 #+end_src 1102 #+end_src
1099 1103
1100* Programming 1104* Programming