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 |
;; (add-to-list 'custom-theme-load-path "~/.emacs.d/themes/") |
|
14 |
;; (load-theme 'zenburn t) |
|
15 |
|
|
16 |
;; remove backup files |
|
17 |
(when (eq system-type 'windows-nt) |
|
18 |
(defadvice backup-buffer (after my-backup-make-hidden activate) |
|
19 |
(let ((backup-file-name (make-backup-file-name (buffer-file-name)))) |
|
20 |
(when (file-exists-p backup-file-name) |
|
21 |
(call-process "attrib.exe" nil nil nil "+I" "+H" backup-file-name))))) |