2015-06-08 23:00:32 +00:00
|
|
|
(
|
|
|
|
(nil
|
|
|
|
)
|
|
|
|
(c-mode
|
2015-07-21 05:22:39 +00:00
|
|
|
(indent-tabs-mode . nil)
|
2015-06-08 23:00:32 +00:00
|
|
|
(c-file-style . "bsd")
|
2015-04-30 04:00:03 +00:00
|
|
|
(c-basic-offset . 4)
|
|
|
|
)
|
2015-09-29 03:25:42 +00:00
|
|
|
(asm-mode
|
|
|
|
(indent-tabs-mode . nil)
|
|
|
|
; this is basically a hack so asm-mode indents with spaces not tabs
|
|
|
|
; taken from http://stackoverflow.com/questions/2668563/emacs-indentation-in-asm-mode
|
|
|
|
; (moving to gas-mode may be a better choice)
|
|
|
|
(tab-stop-list (quote (4 8 12 16 20 24 28 32 36 40 44 48 52 56 60 64 68 72 76 80 84 88 92 96 100 104 108 112 116 120)))
|
|
|
|
(asm-comment-char . "#")
|
|
|
|
)
|
2015-04-30 04:00:03 +00:00
|
|
|
)
|
2015-09-29 03:25:42 +00:00
|
|
|
|
|
|
|
; IMPORTANT: If you want to write assembly and have indenting to not be infuriating,
|
|
|
|
; you probably also want this in your .emacs file:
|
|
|
|
;
|
|
|
|
; (add-hook 'asm-mode-hook '(lambda () (setq indent-line-function 'indent-relative)))
|
|
|
|
;
|
|
|
|
; This is not safe to set as a local variable.
|
|
|
|
|