commit | author | age
|
5cb5f7
|
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 |
|
c4001c
|
13 |
;; remove backup files |
C |
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))))) |