Mercurial > dotfiles
annotate .elisp/settings/50.preferences.el @ 171:2f865a7f84e6
textmate: do not trust cached project root of $HOME
author | Augie Fackler <durin42@gmail.com> |
---|---|
date | Wed, 16 Dec 2009 22:18:43 -0600 |
parents | 668268f29a88 |
children | a8e5d4b0913d 593b5263291d |
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)))) | |
139
6b57bb47de2e
emacs settings: Fix whitespace cleanup to be slightly less invasive.
Augie Fackler <durin42@gmail.com>
parents:
126
diff
changeset
|
11 (setq whitespace-chars (quote (tabs spaces trailing lines newline empty))) |
77 | 12 |
13 ;; Disable that startup screen | |
14 (setq inhibit-startup-message t) | |
15 | |
16 ;; Basically everything I do is in version control, stop saving backup files | |
17 (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 ; always highlight matching paren | |
29 (show-paren-mode 1) | |
30 | |
31 ;; Automatically revert unedited files that change on the underlying | |
32 ;; system. | |
33 (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
|
34 |
f013f40e7b63
Import latest nosemacs, set nose to output dots instead of verbose output.
Augie Fackler <durin42@gmail.com>
parents:
77
diff
changeset
|
35 ;; I like dots in my nose output |
97
5f7b673008b5
Disable toolbar, really use dots.
Augie Fackler <durin42@gmail.com>
parents:
84
diff
changeset
|
36 (setq nose-use-verbose nil) |
5f7b673008b5
Disable toolbar, really use dots.
Augie Fackler <durin42@gmail.com>
parents:
84
diff
changeset
|
37 |
5f7b673008b5
Disable toolbar, really use dots.
Augie Fackler <durin42@gmail.com>
parents:
84
diff
changeset
|
38 ;; no toolbar |
114
d4845549ed7c
No toolbar, but mean it this time.
Augie Fackler <durin42@gmail.com>
parents:
106
diff
changeset
|
39 (setq tool-bar-mode nil) |
105
11fa0420b392
New settings for emacs 23 nightlies.
Augie Fackler <durin42@gmail.com>
parents:
97
diff
changeset
|
40 |
11fa0420b392
New settings for emacs 23 nightlies.
Augie Fackler <durin42@gmail.com>
parents:
97
diff
changeset
|
41 ;; Command is meta in OS X. |
11fa0420b392
New settings for emacs 23 nightlies.
Augie Fackler <durin42@gmail.com>
parents:
97
diff
changeset
|
42 (setq ns-command-modifier (quote meta)) |
11fa0420b392
New settings for emacs 23 nightlies.
Augie Fackler <durin42@gmail.com>
parents:
97
diff
changeset
|
43 |
11fa0420b392
New settings for emacs 23 nightlies.
Augie Fackler <durin42@gmail.com>
parents:
97
diff
changeset
|
44 ;; Don't popup new frames for opened files |
11fa0420b392
New settings for emacs 23 nightlies.
Augie Fackler <durin42@gmail.com>
parents:
97
diff
changeset
|
45 (setq ns-pop-up-frames nil) |
106
398b9c3a3a0b
Better buffer name uniquify rules.
Augie Fackler <durin42@gmail.com>
parents:
105
diff
changeset
|
46 |
151
bf6b5a0dc1f3
.elisp: Make textmate-goto-symbol always recompute function locations.
Augie Fackler <durin42@gmail.com>
parents:
139
diff
changeset
|
47 ; cause imenu to always rescan the buffer (for textmate-goto-symbol) |
bf6b5a0dc1f3
.elisp: Make textmate-goto-symbol always recompute function locations.
Augie Fackler <durin42@gmail.com>
parents:
139
diff
changeset
|
48 (setq imenu-auto-rescan t) |
106
398b9c3a3a0b
Better buffer name uniquify rules.
Augie Fackler <durin42@gmail.com>
parents:
105
diff
changeset
|
49 ;; 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
|
50 (require 'uniquify) |
398b9c3a3a0b
Better buffer name uniquify rules.
Augie Fackler <durin42@gmail.com>
parents:
105
diff
changeset
|
51 (setq uniquify-buffer-name-style 'reverse) |
398b9c3a3a0b
Better buffer name uniquify rules.
Augie Fackler <durin42@gmail.com>
parents:
105
diff
changeset
|
52 (setq uniquify-separator "/") |
398b9c3a3a0b
Better buffer name uniquify rules.
Augie Fackler <durin42@gmail.com>
parents:
105
diff
changeset
|
53 (setq uniquify-after-kill-buffer-p t) |
398b9c3a3a0b
Better buffer name uniquify rules.
Augie Fackler <durin42@gmail.com>
parents:
105
diff
changeset
|
54 (setq uniquify-ignore-buffers-re "^\\*") |
123
b2a07050b430
Allow mercurial.el to default to default or default-push as needed.
Augie Fackler <durin42@gmail.com>
parents:
114
diff
changeset
|
55 (setq hg-outgoing-repository "") |
b2a07050b430
Allow mercurial.el to default to default or default-push as needed.
Augie Fackler <durin42@gmail.com>
parents:
114
diff
changeset
|
56 (setq hg-incoming-repository "") |
154
b67c5a3b98f3
emacs preferences: set a text height so linux doesn't get ideas.
Augie Fackler <durin42@gmail.com>
parents:
139
diff
changeset
|
57 ; so that Cmd+H won't activate Hide Current |
b67c5a3b98f3
emacs preferences: set a text height so linux doesn't get ideas.
Augie Fackler <durin42@gmail.com>
parents:
139
diff
changeset
|
58 ; App and Cmd+Shift+q won't logout user. |
b67c5a3b98f3
emacs preferences: set a text height so linux doesn't get ideas.
Augie Fackler <durin42@gmail.com>
parents:
139
diff
changeset
|
59 (setq mac-pass-command-to-system nil) |
b67c5a3b98f3
emacs preferences: set a text height so linux doesn't get ideas.
Augie Fackler <durin42@gmail.com>
parents:
139
diff
changeset
|
60 |
b67c5a3b98f3
emacs preferences: set a text height so linux doesn't get ideas.
Augie Fackler <durin42@gmail.com>
parents:
139
diff
changeset
|
61 (set-face-attribute 'default nil :height 100) |
159
362d19c732a8
preferences: use y-or-n-p instead of yes-or-no-p
Augie Fackler <durin42@gmail.com>
parents:
154
diff
changeset
|
62 |
362d19c732a8
preferences: use y-or-n-p instead of yes-or-no-p
Augie Fackler <durin42@gmail.com>
parents:
154
diff
changeset
|
63 ;; use y or n instead of yes or no |
362d19c732a8
preferences: use y-or-n-p instead of yes-or-no-p
Augie Fackler <durin42@gmail.com>
parents:
154
diff
changeset
|
64 (fset 'yes-or-no-p 'y-or-n-p) |