Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 May 2007 08:21:10 +0200
From:      =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@des.no>
To:        dmw@unete.cl
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Setting up development environment
Message-ID:  <86abvm3k89.fsf@dwp.des.no>
In-Reply-To: <43801.64.117.137.69.1180473436.squirrel@webmail.ifxnw.cl> (Daniel Molina Wegener's message of "Tue\, 29 May 2007 17\:17\:16 -0400 \(CLT\)")
References:  <43801.64.117.137.69.1180473436.squirrel@webmail.ifxnw.cl>

next in thread | previous in thread | raw e-mail | index | archive | help
"Daniel Molina Wegener" <dmw@unete.cl> writes:
>    Is there any official way to setup a development environment for
> FreeBSD. I mean, I want to contribute with FreeBSD development. All
> I know that there is a Developer's Handbook, but what about setting a
> development environment for FreeBSD-CURRENT and -STABLE including
> from official c-mode-hooks and c++-mode-hooks for emacs to environment
> variables for cross-compiling the FreeBSD source.

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
--=20
Dag-Erling Sm=C3=B8rgrav - des@des.no



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86abvm3k89.fsf>