77
|
1 ;; All lines should end in a newline |
|
2 (setq require-final-newline t) |
|
3 |
|
4 ;; disable tabs |
|
5 (setq tab-width 4) |
|
6 (setq-default indent-tabs-mode nil) |
|
7 |
|
8 ;; Cleanup whitespace before saves. |
|
9 (add-hook 'before-save-hook '(lambda () |
|
10 (if af-cleanup-whitespace (whitespace-cleanup)))) |
|
11 |
|
12 ;; Disable that startup screen |
|
13 (setq inhibit-startup-message t) |
|
14 |
|
15 ;; Basically everything I do is in version control, stop saving backup files |
|
16 (setq make-backup-files nil) |
|
17 |
|
18 ;; Set some pretty colors that are gentler on my eyes |
|
19 (setq default-frame-alist |
|
20 '((width . 80) |
|
21 (cursor-color . "white") |
|
22 (cursor-type . box) |
|
23 (foreground-color . "white") |
|
24 (background-color . "black") |
|
25 ) |
|
26 ) |
|
27 ; always highlight matching paren |
|
28 (show-paren-mode 1) |
|
29 |
|
30 ;; Automatically revert unedited files that change on the underlying |
|
31 ;; system. |
|
32 (global-auto-revert-mode) |