Setting up development environment
Tom Evans
tevans.uk at googlemail.com
Mon Jul 16 12:08:54 UTC 2007
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: This is a digitally signed message part
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20070716/1ab67376/attachment.pgp
More information about the freebsd-hackers
mailing list