Page History
- 2009-Jan-16 13:45 adesmet
- 2009-Jan-15 15:41 michaelb
- 2009-Jan-15 15:41 michaelb
- 2009-Jan-15 15:40 michaelb
Emacs Settings for Condor Coding Style
You're a new Condor developer. You've read the Condor coding guidelines (src/CODING_GUIDELINES from any Condor source tree you've checked out of CVS). Like any sane person, you prefer to use emacs to edit the Condor source. ;)
Here's what you should put the following into your .emacs file and emacs will do all the right things whenever you edit a file that puts you into c-mode:
;; set up c-mode for Condor
(setq c-mode-common-hook
(function (lambda ()
(setq c-basic-offset 4)
(setq c-comment-only-line-offset 4)
(setq c-indent-level 4)
(setq c-brace-imaginary-offset 0)
(setq c-brace-offset 0)
(setq c-argdecl-indent 0)
(setq c-label-offset -4)
(setq c-continued-statement-offset 4)
(setq c-continued-brace-offset -4)
(setq c-tab-always-indent nil)
(setq tab-width 4)
(line-number-mode 1)
))
)
