Date: Mon, 16 Jul 2007 12:42:53 +0100 From: Tom Evans <tevans.uk@googlemail.com> To: Dag-Erling =?ISO-8859-1?Q?Sm=F8rgrav?= <des@des.no> Cc: freebsd-hackers@freebsd.org, dmw@unete.cl Subject: Re: Setting up development environment Message-ID: <1184586173.2017.5.camel@localhost> In-Reply-To: <86abvm3k89.fsf@dwp.des.no> References: <43801.64.117.137.69.1180473436.squirrel@webmail.ifxnw.cl> <86abvm3k89.fsf@dwp.des.no>
next in thread | previous in thread | raw e-mail | index | archive | help
--=-wrb85RI9M0y35Czx+DZ+ Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Wed, 2007-05-30 at 08:21 +0200, Dag-Erling Sm=C3=B8rgrav wrote: ... > Emacs setup (for both C and C++): >=20 > (defun des-knf () > (interactive) >=20 > ;; Basic indent is 8 spaces > (make-local-variable 'c-basic-offset) > (setq c-basic-offset 8) >=20 > ;; 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) >=20 > ;; Labels are flush to the left > (c-set-offset 'label [0]) >=20 > ;; Fill column > (make-local-variable 'fill-column) > (setq fill-column 74)) >=20 > (add-hook 'c-mode-common-hook 'des-knf) >=20 > As for how to cross-build, read build(7). >=20 > DES Before I start translating this/style(9), does anyone already have an equivalent for vim? Regards Tom --=-wrb85RI9M0y35Czx+DZ+ Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQBGm1m4lcRvFfyds/cRAgTsAJ9oeEoZx3I99mvZ6R4NQuRrWWLR5gCghgc1 GgJ/7uZPgGE0mejHoQAS978= =E1cS -----END PGP SIGNATURE----- --=-wrb85RI9M0y35Czx+DZ+--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1184586173.2017.5.camel>