Mercurial > dotfiles
annotate .elisp/settings/50.preferences.el @ 482:0731ceeb27dd
emacs: run hg tests under python3 by default now
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Tue, 07 Jan 2020 16:49:47 -0500 |
parents | b9fd69a36e0c |
children |
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 ; always highlight matching paren | |
16 (show-paren-mode 1) | |
17 | |
18 ;; Automatically revert unedited files that change on the underlying | |
19 ;; system. | |
20 (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
|
21 |
f013f40e7b63
Import latest nosemacs, set nose to output dots instead of verbose output.
Augie Fackler <durin42@gmail.com>
parents:
77
diff
changeset
|
22 ;; I like dots in my nose output |
97
5f7b673008b5
Disable toolbar, really use dots.
Augie Fackler <durin42@gmail.com>
parents:
84
diff
changeset
|
23 (setq nose-use-verbose nil) |
5f7b673008b5
Disable toolbar, really use dots.
Augie Fackler <durin42@gmail.com>
parents:
84
diff
changeset
|
24 |
5f7b673008b5
Disable toolbar, really use dots.
Augie Fackler <durin42@gmail.com>
parents:
84
diff
changeset
|
25 ;; no toolbar |
114
d4845549ed7c
No toolbar, but mean it this time.
Augie Fackler <durin42@gmail.com>
parents:
106
diff
changeset
|
26 (setq tool-bar-mode nil) |
165
a8e5d4b0913d
emacs: Really hide the toolbar.
Augie Fackler <durin42@gmail.com>
parents:
161
diff
changeset
|
27 (tool-bar-mode 0) |
105
11fa0420b392
New settings for emacs 23 nightlies.
Augie Fackler <durin42@gmail.com>
parents:
97
diff
changeset
|
28 |
151
bf6b5a0dc1f3
.elisp: Make textmate-goto-symbol always recompute function locations.
Augie Fackler <durin42@gmail.com>
parents:
139
diff
changeset
|
29 ; 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
|
30 (setq imenu-auto-rescan t) |
106
398b9c3a3a0b
Better buffer name uniquify rules.
Augie Fackler <durin42@gmail.com>
parents:
105
diff
changeset
|
31 ;; 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
|
32 (require 'uniquify) |
398b9c3a3a0b
Better buffer name uniquify rules.
Augie Fackler <durin42@gmail.com>
parents:
105
diff
changeset
|
33 (setq uniquify-buffer-name-style 'reverse) |
398b9c3a3a0b
Better buffer name uniquify rules.
Augie Fackler <durin42@gmail.com>
parents:
105
diff
changeset
|
34 (setq uniquify-separator "/") |
398b9c3a3a0b
Better buffer name uniquify rules.
Augie Fackler <durin42@gmail.com>
parents:
105
diff
changeset
|
35 (setq uniquify-after-kill-buffer-p t) |
398b9c3a3a0b
Better buffer name uniquify rules.
Augie Fackler <durin42@gmail.com>
parents:
105
diff
changeset
|
36 (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
|
37 (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
|
38 (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
|
39 |
221
6aad20d9fcb0
emacs gui: move gui initialization code to a function
Augie Fackler <durin42@gmail.com>
parents:
217
diff
changeset
|
40 ;; Make this a function in case we have to re-run it. I've had weirdness |
6aad20d9fcb0
emacs gui: move gui initialization code to a function
Augie Fackler <durin42@gmail.com>
parents:
217
diff
changeset
|
41 ;; ensue with daemon mode not always initializing everything the way I want |
6aad20d9fcb0
emacs gui: move gui initialization code to a function
Augie Fackler <durin42@gmail.com>
parents:
217
diff
changeset
|
42 ;; in new frames. |
6aad20d9fcb0
emacs gui: move gui initialization code to a function
Augie Fackler <durin42@gmail.com>
parents:
217
diff
changeset
|
43 (defun af-gui-init () |
6aad20d9fcb0
emacs gui: move gui initialization code to a function
Augie Fackler <durin42@gmail.com>
parents:
217
diff
changeset
|
44 (interactive) |
6aad20d9fcb0
emacs gui: move gui initialization code to a function
Augie Fackler <durin42@gmail.com>
parents:
217
diff
changeset
|
45 ;; so that Cmd+H won't activate Hide Current |
6aad20d9fcb0
emacs gui: move gui initialization code to a function
Augie Fackler <durin42@gmail.com>
parents:
217
diff
changeset
|
46 ;; App and Cmd+Shift+q won't logout user. |
6aad20d9fcb0
emacs gui: move gui initialization code to a function
Augie Fackler <durin42@gmail.com>
parents:
217
diff
changeset
|
47 (setq mac-pass-command-to-system nil) |
6aad20d9fcb0
emacs gui: move gui initialization code to a function
Augie Fackler <durin42@gmail.com>
parents:
217
diff
changeset
|
48 |
6aad20d9fcb0
emacs gui: move gui initialization code to a function
Augie Fackler <durin42@gmail.com>
parents:
217
diff
changeset
|
49 ;; scrollbars, but on the right, not the left |
6aad20d9fcb0
emacs gui: move gui initialization code to a function
Augie Fackler <durin42@gmail.com>
parents:
217
diff
changeset
|
50 (if (window-system) (set-scroll-bar-mode 'right)) |
6aad20d9fcb0
emacs gui: move gui initialization code to a function
Augie Fackler <durin42@gmail.com>
parents:
217
diff
changeset
|
51 |
6aad20d9fcb0
emacs gui: move gui initialization code to a function
Augie Fackler <durin42@gmail.com>
parents:
217
diff
changeset
|
52 ;; Command is meta in OS X. |
6aad20d9fcb0
emacs gui: move gui initialization code to a function
Augie Fackler <durin42@gmail.com>
parents:
217
diff
changeset
|
53 (setq ns-command-modifier (quote meta)) |
6aad20d9fcb0
emacs gui: move gui initialization code to a function
Augie Fackler <durin42@gmail.com>
parents:
217
diff
changeset
|
54 |
6aad20d9fcb0
emacs gui: move gui initialization code to a function
Augie Fackler <durin42@gmail.com>
parents:
217
diff
changeset
|
55 ;; Don't popup new frames for opened files |
6aad20d9fcb0
emacs gui: move gui initialization code to a function
Augie Fackler <durin42@gmail.com>
parents:
217
diff
changeset
|
56 (setq ns-pop-up-frames nil) |
159
362d19c732a8
preferences: use y-or-n-p instead of yes-or-no-p
Augie Fackler <durin42@gmail.com>
parents:
154
diff
changeset
|
57 |
221
6aad20d9fcb0
emacs gui: move gui initialization code to a function
Augie Fackler <durin42@gmail.com>
parents:
217
diff
changeset
|
58 (cond |
6aad20d9fcb0
emacs gui: move gui initialization code to a function
Augie Fackler <durin42@gmail.com>
parents:
217
diff
changeset
|
59 ((eq window-system 'ns) ;; OS X |
6aad20d9fcb0
emacs gui: move gui initialization code to a function
Augie Fackler <durin42@gmail.com>
parents:
217
diff
changeset
|
60 (set-face-attribute 'default nil :height 120)) |
6aad20d9fcb0
emacs gui: move gui initialization code to a function
Augie Fackler <durin42@gmail.com>
parents:
217
diff
changeset
|
61 (t ;; everywhere else |
356
b9fd69a36e0c
emacs: nudge size of font on linux up slightly
Augie Fackler <raf@durin42.com>
parents:
324
diff
changeset
|
62 (set-face-attribute 'default nil :height 105))) |
221
6aad20d9fcb0
emacs gui: move gui initialization code to a function
Augie Fackler <durin42@gmail.com>
parents:
217
diff
changeset
|
63 ) |
6aad20d9fcb0
emacs gui: move gui initialization code to a function
Augie Fackler <durin42@gmail.com>
parents:
217
diff
changeset
|
64 (af-gui-init) |
264
b56da15f4444
emacs: enable narrow-to-region
Augie Fackler <durin42@gmail.com>
parents:
259
diff
changeset
|
65 |
159
362d19c732a8
preferences: use y-or-n-p instead of yes-or-no-p
Augie Fackler <durin42@gmail.com>
parents:
154
diff
changeset
|
66 ;; 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
|
67 (fset 'yes-or-no-p 'y-or-n-p) |
264
b56da15f4444
emacs: enable narrow-to-region
Augie Fackler <durin42@gmail.com>
parents:
259
diff
changeset
|
68 ;; Enable narrow-to-region, which is disabled by default |
b56da15f4444
emacs: enable narrow-to-region
Augie Fackler <durin42@gmail.com>
parents:
259
diff
changeset
|
69 (put 'narrow-to-region 'disabled nil) |
193
0ab568ab2b1b
emacs: better magit diff faces
Augie Fackler <durin42@gmail.com>
parents:
173
diff
changeset
|
70 |
217
e4842709368a
emacs: move colors to their own file and migrate to whitespace from wspace
Augie Fackler <durin42@gmail.com>
parents:
194
diff
changeset
|
71 ;; whitespace detection |
300
276c14c5eec0
whitespace-style: cleanups from slb
Augie Fackler <raf@durin42.com>
parents:
271
diff
changeset
|
72 (setq |
276c14c5eec0
whitespace-style: cleanups from slb
Augie Fackler <raf@durin42.com>
parents:
271
diff
changeset
|
73 whitespace-line-column 78 |
276c14c5eec0
whitespace-style: cleanups from slb
Augie Fackler <raf@durin42.com>
parents:
271
diff
changeset
|
74 whitespace-style '(face |
276c14c5eec0
whitespace-style: cleanups from slb
Augie Fackler <raf@durin42.com>
parents:
271
diff
changeset
|
75 trailing |
276c14c5eec0
whitespace-style: cleanups from slb
Augie Fackler <raf@durin42.com>
parents:
271
diff
changeset
|
76 space-after-tab |
276c14c5eec0
whitespace-style: cleanups from slb
Augie Fackler <raf@durin42.com>
parents:
271
diff
changeset
|
77 space-before-tab |
276c14c5eec0
whitespace-style: cleanups from slb
Augie Fackler <raf@durin42.com>
parents:
271
diff
changeset
|
78 lines-tail |
276c14c5eec0
whitespace-style: cleanups from slb
Augie Fackler <raf@durin42.com>
parents:
271
diff
changeset
|
79 indentation |
276c14c5eec0
whitespace-style: cleanups from slb
Augie Fackler <raf@durin42.com>
parents:
271
diff
changeset
|
80 empty |
276c14c5eec0
whitespace-style: cleanups from slb
Augie Fackler <raf@durin42.com>
parents:
271
diff
changeset
|
81 tabs) |
276c14c5eec0
whitespace-style: cleanups from slb
Augie Fackler <raf@durin42.com>
parents:
271
diff
changeset
|
82 ) |
217
e4842709368a
emacs: move colors to their own file and migrate to whitespace from wspace
Augie Fackler <durin42@gmail.com>
parents:
194
diff
changeset
|
83 (global-whitespace-mode 1) |
259
e742cf5a748c
emacs: disable vc backends for a little speed improvement
Augie Fackler <durin42@gmail.com>
parents:
221
diff
changeset
|
84 |
e742cf5a748c
emacs: disable vc backends for a little speed improvement
Augie Fackler <durin42@gmail.com>
parents:
221
diff
changeset
|
85 ;; Disable VC plumbing since I don't really use it that much anyway |
e742cf5a748c
emacs: disable vc backends for a little speed improvement
Augie Fackler <durin42@gmail.com>
parents:
221
diff
changeset
|
86 (setq vc-handled-backends nil) |
269
546ac96796da
emacs: use aspell for spell checking
Augie Fackler <durin42@gmail.com>
parents:
259
diff
changeset
|
87 |
546ac96796da
emacs: use aspell for spell checking
Augie Fackler <durin42@gmail.com>
parents:
259
diff
changeset
|
88 ;; use aspell |
546ac96796da
emacs: use aspell for spell checking
Augie Fackler <durin42@gmail.com>
parents:
259
diff
changeset
|
89 (setq-default ispell-program-name "aspell") |