Mercurial > dotfiles
comparison .elisp/settings/50.preferences.el @ 217:e4842709368a
emacs: move colors to their own file and migrate to whitespace from wspace
author | Augie Fackler <durin42@gmail.com> |
---|---|
date | Sat, 14 Aug 2010 20:42:58 -0500 |
parents | cf3ba8f57434 |
children | 6aad20d9fcb0 |
comparison
equal
deleted
inserted
replaced
216:a01712792c2b | 217:e4842709368a |
---|---|
6 (setq-default indent-tabs-mode nil) | 6 (setq-default indent-tabs-mode nil) |
7 | 7 |
8 ;; Cleanup whitespace before saves. | 8 ;; Cleanup whitespace before saves. |
9 (add-hook 'before-save-hook '(lambda () | 9 (add-hook 'before-save-hook '(lambda () |
10 (if af-cleanup-whitespace (whitespace-cleanup)))) | 10 (if af-cleanup-whitespace (whitespace-cleanup)))) |
11 (setq whitespace-chars (quote (tabs spaces trailing lines newline empty))) | |
12 | 11 |
13 ;; Disable that startup screen | 12 ;; Disable that startup screen |
14 (setq inhibit-startup-message t) | 13 (setq inhibit-startup-message t) |
15 | 14 |
16 ;; Basically everything I do is in version control, stop saving backup files | 15 ;; Basically everything I do is in version control, stop saving backup files |
17 (setq make-backup-files nil) | 16 (setq make-backup-files nil) |
18 | |
19 ;; Set some pretty colors that are gentler on my eyes | |
20 (setq default-frame-alist | |
21 '((width . 80) | |
22 (cursor-color . "white") | |
23 (cursor-type . box) | |
24 (foreground-color . "white") | |
25 (background-color . "black") | |
26 ) | |
27 ) | |
28 | |
29 ;; tell ipython we have a dark background | |
30 (setq py-python-command-args (quote ("-i"))) | |
31 | 17 |
32 ; always highlight matching paren | 18 ; always highlight matching paren |
33 (show-paren-mode 1) | 19 (show-paren-mode 1) |
34 | 20 |
35 ;; Automatically revert unedited files that change on the underlying | 21 ;; Automatically revert unedited files that change on the underlying |
73 (set-face-attribute 'default nil :height 100))) | 59 (set-face-attribute 'default nil :height 100))) |
74 | 60 |
75 ;; use y or n instead of yes or no | 61 ;; use y or n instead of yes or no |
76 (fset 'yes-or-no-p 'y-or-n-p) | 62 (fset 'yes-or-no-p 'y-or-n-p) |
77 | 63 |
78 ;; customized theme faces | 64 ;; whitespace detection |
79 (custom-set-faces | 65 (setq whitespace-style '(trailing tabs lines-tail indentation trailing empty)) |
80 '(magit-diff-add ((t (:foreground "DarkGreen"))) 'now) | 66 (global-whitespace-mode 1) |
81 '(magit-item-highlight ((t (:background "grey19"))) 'now)) |