On Wed, 2007-05-30 at 08:21 +0200, Dag-Erling Smørgrav wrote: ... > Emacs setup (for both C and C++): > > (defun des-knf () > (interactive) > > ;; Basic indent is 8 spaces > (make-local-variable 'c-basic-offset) > (setq c-basic-offset 8) > > ;; Continuation lines are indented 4 spaces > (make-local-variable 'c-offsets-alist) > (c-set-offset 'arglist-cont 4) > (c-set-offset 'arglist-cont-nonempty 4) > (c-set-offset 'statement-cont 4) > > ;; Labels are flush to the left > (c-set-offset 'label [0]) > > ;; Fill column > (make-local-variable 'fill-column) > (setq fill-column 74)) > > (add-hook 'c-mode-common-hook 'des-knf) > > As for how to cross-build, read build(7). > > DES
Before I start translating this/style(9), does anyone already have an equivalent for vim? Regards Tom
signature.asc
Description: This is a digitally signed message part