mirror of https://github.com/Chizi123/.emacs.d.git

Chizi123
2018-11-22 178ab9bdd8db8821c6acacffcccda10abbef8f29
commit | author | age
8c2ab1 1 (provide 'setup-environment)
C 2
3 (setq inhibit-startup-screen t)
4
5 (setq savehist-additional-variables '(search ring regexp-search-ring) ; also save your regexp search queries
6       savehist-autosave-interval 60     ; save every minute
7       )
8
9 (winner-mode 1)
10
11 (column-number-mode 1)
12
13 ;; remove backup files
14 (when (eq system-type 'windows-nt)
15   (defadvice backup-buffer (after my-backup-make-hidden activate)
16     (let ((backup-file-name (make-backup-file-name (buffer-file-name))))
17       (when (file-exists-p backup-file-name)
18     (call-process "attrib.exe" nil nil nil "+I" "+H" backup-file-name)))))