Remove pointlessly noisy description in header comment.
[emacs.d.git] / lisp / edit-rc.el
blob24db5ffa5bd430f86a2181e22e5bce209df033c6
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 'yard-set-common-lisp-indent)
20 (add-hook 'inferior-lisp-mode-hook 'yard-set-common-lisp-indent)
21 (add-hook 'lisp-interaction-mode-hook 'yard-set-elisp-indent)
22 (add-hook 'ielm-mode-hook 'yard-set-elisp-indent)
23 (add-hook 'emacs-lisp-mode-hook 'yard-set-elisp-indent)
25 ;;; Automatic minor modes.
26 (add-hook 'find-file-hook 'yard-set-auto-minor-mode)
28 ;;; Sane indentation of the loop macro in Common Lisp.
29 (setq lisp-simple-loop-indentation 2
30 lisp-loop-keyword-indentation 6
31 lisp-loop-forms-indentation 9)
33 ;;; .paren is the usual extension for Parenscript files.
34 (add-to-list 'auto-mode-alist (cons "\\.paren\\'" 'lisp-mode))