[Nut-upsdev] coding style

Charles Lepple clepple at gmail.com
Thu Feb 8 23:08:10 CET 2007


On 2/8/07, Peter Selinger <selinger at mathstat.dal.ca> wrote:
> +If you are using emacs, you can automatically adjust the tab-width
> +setting to (say) 3 spaces for all NUT sources by putting something
> +like this into your .emacs:
> +
> + ;; NUT style
> + (defun nut-c-mode ()
> +  "C mode with adjusted defaults for use with the NUT sources."
> +  (interactive)
> +  (c-mode)
> +  (c-set-style "K&R")
> +  (setq c-basic-offset 3)
> +  (setq tab-width 3))

c-basic-offset of 3 is OK with me, but a tab-width of 3?

-- 
- Charles Lepple



More information about the Nut-upsdev mailing list