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 ;;; Turn on some "confusing" commands.
9 (put `upcase-region
`disabled nil
)
10 (put `downcase-region
`disabled nil
)
11 (put 'dired-find-alternate-file
'disabled nil
)
13 ;;; "stroustrup" and "k&r" in lieu of "gnu".
14 (setq-default c-default-style
'((java-mode .
"java")
16 (c++-mode .
"stroustrup")
19 ;;; Java is conventionally camel cased.
20 (add-hook 'java-mode-hook
'subword-mode
)
22 ;;; Use buffer local 'lisp-indent-function values corresponding to the
24 (add-hook 'lisp-mode-hook
'yard-set-common-lisp-indent
)
25 (add-hook 'inferior-lisp-mode-hook
'yard-set-common-lisp-indent
)
26 (add-hook 'lisp-interaction-mode-hook
'yard-set-elisp-indent
)
27 (add-hook 'ielm-mode-hook
'yard-set-elisp-indent
)
28 (add-hook 'emacs-lisp-mode-hook
'yard-set-elisp-indent
)
30 ;;; Automatic minor modes.
31 (add-hook 'find-file-hook
'yard-set-auto-minor-mode
)
33 ;;; Sane indentation of the loop macro in Common Lisp.
34 (setq lisp-simple-loop-indentation
2
35 lisp-loop-keyword-indentation
6
36 lisp-loop-forms-indentation
9)
38 ;;; .paren is the usual extension for Parenscript files.
39 (add-to-list 'auto-mode-alist
(cons "\\.paren\\'" 'lisp-mode
))