diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-01-31 11:32:31 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-02-05 16:30:01 -0500 |
commit | 9d45cf9e36bf9bcf16df6e1cbf049807c8402823 (patch) | |
tree | 2118a16701418af10d215d2174df7ee0a5cbe6bd /Documentation/CodingStyle | |
parent | a146649bc19d5eba4f5bfac6720c5f252d517a71 (diff) | |
parent | 0cd5c3c80a0ebd68c08312fa7d8c13149cc61c4c (diff) |
Merge branch 'x86/urgent' into x86/apic
Conflicts:
arch/x86/mach-default/setup.c
Semantic merge:
arch/x86/kernel/irqinit_32.c
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'Documentation/CodingStyle')
-rw-r--r-- | Documentation/CodingStyle | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/Documentation/CodingStyle b/Documentation/CodingStyle index 1875e502f872..72968cd5eaf3 100644 --- a/Documentation/CodingStyle +++ b/Documentation/CodingStyle | |||
@@ -483,17 +483,25 @@ values. To do the latter, you can stick the following in your .emacs file: | |||
483 | (* (max steps 1) | 483 | (* (max steps 1) |
484 | c-basic-offset))) | 484 | c-basic-offset))) |
485 | 485 | ||
486 | (add-hook 'c-mode-common-hook | ||
487 | (lambda () | ||
488 | ;; Add kernel style | ||
489 | (c-add-style | ||
490 | "linux-tabs-only" | ||
491 | '("linux" (c-offsets-alist | ||
492 | (arglist-cont-nonempty | ||
493 | c-lineup-gcc-asm-reg | ||
494 | c-lineup-arglist-tabs-only)))))) | ||
495 | |||
486 | (add-hook 'c-mode-hook | 496 | (add-hook 'c-mode-hook |
487 | (lambda () | 497 | (lambda () |
488 | (let ((filename (buffer-file-name))) | 498 | (let ((filename (buffer-file-name))) |
489 | ;; Enable kernel mode for the appropriate files | 499 | ;; Enable kernel mode for the appropriate files |
490 | (when (and filename | 500 | (when (and filename |
491 | (string-match "~/src/linux-trees" filename)) | 501 | (string-match (expand-file-name "~/src/linux-trees") |
502 | filename)) | ||
492 | (setq indent-tabs-mode t) | 503 | (setq indent-tabs-mode t) |
493 | (c-set-style "linux") | 504 | (c-set-style "linux-tabs-only"))))) |
494 | (c-set-offset 'arglist-cont-nonempty | ||
495 | '(c-lineup-gcc-asm-reg | ||
496 | c-lineup-arglist-tabs-only)))))) | ||
497 | 505 | ||
498 | This will make emacs go better with the kernel coding style for C | 506 | This will make emacs go better with the kernel coding style for C |
499 | files below ~/src/linux-trees. | 507 | files below ~/src/linux-trees. |