Load and configure things more lazily. Set font colors for all frames uniformly.
[emacs.d.git] / lisp / edit-rc.el
blob27f32ed72a5d4de22a415303f2fc47f08aaf0d73
1 ;;; A simple rc to configure Emacs' editing behavior.
3 ;; Spaces instead of tabs.
4 (setq-default tab-width 4
5 indent-tabs-mode nil)
6 (setq tab-stop-list (number-sequence 4 120 4))
8 ;; "stroustrup" and "k&r" in lieu of "gnu".
9 (setq-default c-default-style '((java-mode . "java")
10 (awk-mode . "awk")
11 (c++-mode . "stroustrup")
12 (other . "k&r")))
14 ;; Java is conventionally camel cased.
15 (add-hook 'java-mode-hook 'subword-mode)
17 ;; Use buffer local 'lisp-indent-function values corresponding to the
18 ;; mode.
19 (add-hook 'lisp-mode-hook 'y-set-common-lisp-indent)
20 (add-hook 'inferior-lisp-mode-hook 'y-set-common-lisp-indent)
21 (add-hook 'lisp-interaction-mode-hook 'y-set-elisp-indent)
22 (add-hook 'ielm-mode-hook 'y-set-elisp-indent)
23 (add-hook 'emacs-lisp-mode-hook 'y-set-elisp-indent)
25 (add-hook 'find-file-hook 'y-set-auto-minor-mode)
27 ;; Sane indentation of the loop macro in Common Lisp.
28 (setq lisp-simple-loop-indentation 2
29 lisp-loop-keyword-indentation 6
30 lisp-loop-forms-indentation 9)
32 ;; .paren is the usual extension for Parenscript files.
33 (add-to-list 'auto-mode-alist (cons "\\.paren\\'" 'lisp-mode))