author | Luke Hoersten <luke@hoersten.org> |
Wed, 22 Feb 2017 12:13:38 -0600 | |
changeset 96 | 8458091b7533 |
parent 94 | 8f7bb9aba71a |
child 97 | f7640b0bab67 |
permissions | -rw-r--r-- |
21 | 1 |
;; ~/.emacs.d/init.el (~/.emacs) |
4
0fda818a8b6a
Added doxymacs and provides for requires.
Luke Hoersten <Luke@Hoersten.org>
parents:
3
diff
changeset
|
2 |
;; Luke Hoersten <[email protected]> |
0 | 3 |
|
32
68b57950fa11
Fixed font problem and removed os-specific config files.
Luke Hoersten <Luke@Hoersten.org>
parents:
31
diff
changeset
|
4 |
;;;; General ;;;; |
75 | 5 |
(add-to-list 'load-path "~/.emacs.d/elisp") ; set default emacs load path |
0 | 6 |
|
21 | 7 |
(setq-default |
82
12cf67bc486c
Added paredit, flx-ido and projectile.
Luke Hoersten <luke@hoersten.org>
parents:
78
diff
changeset
|
8 |
gc-cons-threshold 20000000 ; gc every 20 MB allocated (form flx-ido docs) |
75 | 9 |
inhibit-splash-screen t ; disable splash screen |
10 |
truncate-lines t ; truncate, not wrap, lines |
|
11 |
indent-tabs-mode nil ; only uses spaces for indentation |
|
12 |
split-width-threshold 181 ; min width to split window horizontially |
|
13 |
split-height-threshold 120 ; min width to split window vertically |
|
14 |
reb-re-syntax 'string ; use string syntax for regexp builder |
|
15 |
require-final-newline 'visit-save) ; add a newline automatically |
|
0 | 16 |
|
75 | 17 |
(put 'set-goal-column 'disabled nil) ; enable goal column setting |
18 |
(put 'narrow-to-region 'disabled nil) ; enable hiding |
|
21 | 19 |
(put 'narrow-to-page 'disabled nil) |
20 |
||
85
0b91f7fe5a89
Reorganized global modes a bit. Fixed multi-frame font changes.
Luke Hoersten <luke@hoersten.org>
parents:
84
diff
changeset
|
21 |
(fset 'yes-or-no-p 'y-or-n-p) ; replace yes/no prompts with y/n |
0b91f7fe5a89
Reorganized global modes a bit. Fixed multi-frame font changes.
Luke Hoersten <luke@hoersten.org>
parents:
84
diff
changeset
|
22 |
(windmove-default-keybindings) ; move between windows with shift-arrow |
0b91f7fe5a89
Reorganized global modes a bit. Fixed multi-frame font changes.
Luke Hoersten <luke@hoersten.org>
parents:
84
diff
changeset
|
23 |
|
75 | 24 |
(column-number-mode t) ; show column numbers |
25 |
(delete-selection-mode t) ; replace highlighted text |
|
85
0b91f7fe5a89
Reorganized global modes a bit. Fixed multi-frame font changes.
Luke Hoersten <luke@hoersten.org>
parents:
84
diff
changeset
|
26 |
(which-function-mode t) ; function name at point in mode line |
0b91f7fe5a89
Reorganized global modes a bit. Fixed multi-frame font changes.
Luke Hoersten <luke@hoersten.org>
parents:
84
diff
changeset
|
27 |
(transient-mark-mode t) ; highlight selection between point and mark |
0b91f7fe5a89
Reorganized global modes a bit. Fixed multi-frame font changes.
Luke Hoersten <luke@hoersten.org>
parents:
84
diff
changeset
|
28 |
(electric-pair-mode t) ; automatically close opening characters |