1 ;;; A simple rc to configure Emacs' editing behavior.
3 ;; Spaces instead of tabs.
4 (setq-default tab-width
4
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")
11 (c++-mode .
"stroustrup")
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
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
))