config/doom: fix whitespace-mode and backups

This commit is contained in:
xerus2000 2020-11-14 02:09:26 +01:00
parent a25edaf163
commit dda50a70cc
1 changed files with 3 additions and 4 deletions

View File

@ -57,14 +57,14 @@
(desktop-save-mode 1) (desktop-save-mode 1)
(global-whitespace-mode -1) ;(global-whitespace-mode -1)
(whitespace-mode -1) ;(whitespace-mode -1)
;; Backups & auto-saves ;; Backups & auto-saves
(setq auto-save-default t) (setq auto-save-default t)
(setq auto-save-interval 40) (setq auto-save-interval 40)
(setq backup-directory-alist `(("" . (expand-file-name "backups" user-emacs-directory)))) (setq backup-directory-alist (expand-file-name "backups" user-emacs-directory))
(setq delete-old-versions t (setq delete-old-versions t
kept-new-versions 6 kept-new-versions 6
kept-old-versions 2 kept-old-versions 2
@ -114,7 +114,6 @@
(add-hook 'org-mode-hook 'org-toggle-blocks) (add-hook 'org-mode-hook 'org-toggle-blocks)
(add-hook 'org-mode-hook 'org-toggle-inline-images) (add-hook 'org-mode-hook 'org-toggle-inline-images)
(add-hook 'org-mode-hook (apply-partially '+org/close-all-folds 2)) (add-hook 'org-mode-hook (apply-partially '+org/close-all-folds 2))
(add-hook 'org-mode-hook (apply-partially 'whitespace-mode -1))
;; https://christiantietze.de/posts/2019/06/org-fold-heading/ ;; https://christiantietze.de/posts/2019/06/org-fold-heading/
(defun ct/org-foldup () (defun ct/org-foldup ()