[syslinux] Devel list, coding standards

H. Peter Anvin hpa at zytor.com
Tue May 26 09:23:22 PDT 2009


Luciano Miguel Ferreira Rocha wrote:
> 
> Well, is it 4 spaces, or 4 spaces, 1 tab, 1 tab + 4 spaces?
> 
> Or is it 1 tab that gets displayed as 4 spaces?
> 
> Modelines for vim and/or emacs would be appreciated.
> 

Neither.  It's four positions, with tab still being an 8-column spacer.

I use the following in Emacs:

(defun c4-mode ()
  "C mode in K&R style with 4 spaces per level."
  (interactive)
  (c-mode)
  (c-set-style "k&r")
  (setq c-basic-offset 4))

	-hpa

-- 
H. Peter Anvin, Intel Open Source Technology Center
I work for Intel.  I don't speak on their behalf.




More information about the Syslinux mailing list