diff options
Diffstat (limited to 'init.el')
-rw-r--r-- | init.el | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/init.el b/init.el index d20e1ac..a6e29a4 100644 --- a/init.el +++ b/init.el | |||
@@ -365,6 +365,9 @@ | |||
365 | (setup imenu | 365 | (setup imenu |
366 | (:option imenu-auto-rescan t)) | 366 | (:option imenu-auto-rescan t)) |
367 | 367 | ||
368 | (setup Info | ||
369 | (:hook variable-pitch-mode)) | ||
370 | |||
368 | (setup isearch | 371 | (setup isearch |
369 | (:option search-default-mode t)) | 372 | (:option search-default-mode t)) |
370 | 373 | ||
@@ -578,6 +581,9 @@ | |||
578 | uniquify-after-kill-buffer-p t | 581 | uniquify-after-kill-buffer-p t |
579 | uniquify-ignore-buffers-re "^\\*")) | 582 | uniquify-ignore-buffers-re "^\\*")) |
580 | 583 | ||
584 | (setup variable-pitch-mode | ||
585 | (:hook acdw-fonts/adapt-variable-pitch)) | ||
586 | |||
581 | (setup view | 587 | (setup view |
582 | (:option view-read-only t) | 588 | (:option view-read-only t) |
583 | 589 | ||
@@ -936,7 +942,11 @@ if ripgrep is installed, otherwise `consult-grep'." | |||
936 | (:bind "RET" acdw-org/return-dwim | 942 | (:bind "RET" acdw-org/return-dwim |
937 | "<S-return>" acdw-org/org-table-copy-down) | 943 | "<S-return>" acdw-org/org-table-copy-down) |
938 | 944 | ||
939 | (add-hook 'before-save-hook #'acdw-org/fix-blank-lines-in-buffer) | 945 | (defun acdw/org-fix-lines-before-save () |
946 | (add-hook 'before-save-hook #'acdw-org/fix-blank-lines-in-buffer 0 :local)) | ||
947 | |||
948 | (:hook variable-pitch-mode | ||
949 | acdw/org-fix-lines-before-save) | ||
940 | 950 | ||
941 | (advice-add 'org-delete-backward-char | 951 | (advice-add 'org-delete-backward-char |
942 | :override #'acdw-org/delete-backward-char)) | 952 | :override #'acdw-org/delete-backward-char)) |