lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Sun, 20 Jan 2008 02:40:29 +0100 From: Johannes Weiner <hannes@...urebad.de> To: David Brown <lkml@...idb.org> Cc: Linus Torvalds <torvalds@...ux-foundation.org>, linux-kernel@...r.kernel.org Subject: Re: [PATCH] Update emacs indentation instructions. Hi, David Brown <lkml@...idb.org> writes: > +Fortunately, modern versions of GNU emacs support different indentation > +styles. If you want to use the Linux kernel style for all C code, place > +the following in your .emacs file: > + > +(setq c-default-style "linux") This variable is not defined when emacs starts up. Best is to always use a hook. So I'd suggest either (add-hook 'c-mode-hook (lambda () (c-set-style "linux"))) or for the conditional case (add-hook 'c-mode-hook (lambda () (c-set-style (or (and (string-match "/usr/src/linux" (or (buffer-file-name) "")) "linux") "free-group-style")))) Perhaps the logic could be a bit more readable :-) Other than that, good idea to finally remove this ugly recommendation! Hannes -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists