Re: Setting up development environment
--=-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+--
討論串 (同標題文章)
完整討論串 (本文為第 6 之 7 篇):