Mercurial > dotfiles
annotate .elisp/settings/50.preferences.el @ 109:8e04d9d41a55
reindent-then-newline-and-indent is the best discovery of the week.
author | Augie Fackler <durin42@gmail.com> |
---|---|
date | Wed, 17 Jun 2009 15:47:51 -0500 |
parents | 398b9c3a3a0b |
children | d4845549ed7c |
rev | line source |
---|---|
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) | |
84
f013f40e7b63
Import latest nosemacs, set nose to output dots instead of verbose output.
Augie Fackler <durin42@gmail.com>
parents:
77
diff
changeset
|
33 |
f013f40e7b63
Import latest nosemacs, set nose to output dots instead of verbose output.
Augie Fackler <durin42@gmail.com>
parents:
77
diff
changeset
|
34 ;; I like dots in my nose output |
97
5f7b673008b5
Disable toolbar, really use dots.
Augie Fackler <durin42@gmail.com>
parents:
84
diff
changeset
|
35 (setq nose-use-verbose nil) |
5f7b673008b5
Disable toolbar, really use dots.
Augie Fackler <durin42@gmail.com>
parents:
84
diff
changeset
|
36 |
5f7b673008b5
Disable toolbar, really use dots.
Augie Fackler <durin42@gmail.com>
parents:
84
diff
changeset
|
37 ;; no toolbar |
5f7b673008b5
Disable toolbar, really use dots.
Augie Fackler <durin42@gmail.com>
parents:
84
diff
changeset
|
38 (tool-bar-mode nil) |
105
11fa0420b392
New settings for emacs 23 nightlies.
Augie Fackler <durin42@gmail.com>
parents:
97
diff
changeset
|
39 |
11fa0420b392
New settings for emacs 23 nightlies.
Augie Fackler <durin42@gmail.com>
parents:
97
diff
changeset
|
40 ;; Command is meta in OS X. |
11fa0420b392
New settings for emacs 23 nightlies.
Augie Fackler <durin42@gmail.com>
parents:
97
diff
changeset
|
41 (setq ns-command-modifier (quote meta)) |
11fa0420b392
New settings for emacs 23 nightlies.
Augie Fackler <durin42@gmail.com>
parents:
97
diff
changeset
|
42 |
11fa0420b392
New settings for emacs 23 nightlies.
Augie Fackler <durin42@gmail.com>
parents:
97
diff
changeset
|
43 ;; Don't popup new frames for opened files |
11fa0420b392
New settings for emacs 23 nightlies.
Augie Fackler <durin42@gmail.com>
parents:
97
diff
changeset
|
44 (setq ns-pop-up-frames nil) |
106
398b9c3a3a0b
Better buffer name uniquify rules.
Augie Fackler <durin42@gmail.com>
parents:
105
diff
changeset
|
45 |
398b9c3a3a0b
Better buffer name uniquify rules.
Augie Fackler <durin42@gmail.com>
parents:
105
diff
changeset
|
46 ;; better uniquify from http://metapundit.net/sections/blog/emacs_and_django |
398b9c3a3a0b
Better buffer name uniquify rules.
Augie Fackler <durin42@gmail.com>
parents:
105
diff
changeset
|
47 (require 'uniquify) |
398b9c3a3a0b
Better buffer name uniquify rules.
Augie Fackler <durin42@gmail.com>
parents:
105
diff
changeset
|
48 (setq uniquify-buffer-name-style 'reverse) |
398b9c3a3a0b
Better buffer name uniquify rules.
Augie Fackler <durin42@gmail.com>
parents:
105
diff
changeset
|
49 (setq uniquify-separator "/") |
398b9c3a3a0b
Better buffer name uniquify rules.
Augie Fackler <durin42@gmail.com>
parents:
105
diff
changeset
|
50 (setq uniquify-after-kill-buffer-p t) |
398b9c3a3a0b
Better buffer name uniquify rules.
Augie Fackler <durin42@gmail.com>
parents:
105
diff
changeset
|
51 (setq uniquify-ignore-buffers-re "^\\*") |