Browse Source

Work on backups, eshell shouldn't show whitespace

master
Macoy Madson 2 years ago
parent
commit
e1d91f87c0
  1. 17
      Emacs/core-settings.el
  2. 1
      Emacs/visual-late.el

17
Emacs/core-settings.el

@ -41,7 +41,24 @@
(setq large-file-warning-threshold 90000000)
;; stop creating those backup~ files
;; TODO: Use https://www.emacswiki.org/emacs/BackupEachSave etc. instead (the below code doesn't
;; save a backup every time you save the buffer)
(setq make-backup-files nil)
;; (setq make-backup-files t)
;; (when make-backup-files
;; (setq
;; ; Backup version-controlled files
;; vc-make-backup-files t
;; ; don't clobber symlinks
;; backup-by-copying t
;; backup-directory-alist
;; ; don't litter my fs tree
;; '(("." . "~/.macoy-emacs-backups/"))
;; delete-old-versions t
;; kept-new-versions 6
;; kept-old-versions 2
;; ; use versioned backups
;; version-control t))
;; stop creating those #auto-save# files
(setq auto-save-default nil)

1
Emacs/visual-late.el

@ -224,6 +224,7 @@
;; Ensure whitespace isn't shown in e.g. ido vertical (the ido-specific hooks didn't do the trick)
(add-hook 'minibuffer-inactive-mode-hook (lambda () (setq show-trailing-whitespace nil)))
(add-hook 'compilation-mode-hook (lambda () (setq show-trailing-whitespace nil)))
(add-hook 'eshell-mode-hook (lambda () (setq show-trailing-whitespace nil)))
(set-face-foreground 'trailing-whitespace (face-foreground 'font-lock-comment-delimiter-face))
(set-face-background 'trailing-whitespace (face-foreground 'font-lock-comment-delimiter-face))

Loading…
Cancel
Save