* [PATCH] Docs: Fix elisp code so tabbing more than once works
@ 2014-04-14 0:23 Greg Donald
2014-04-14 0:45 ` Joe Perches
0 siblings, 1 reply; 2+ messages in thread
From: Greg Donald @ 2014-04-14 0:23 UTC (permalink / raw)
To: Randy Dunlap, linux-doc, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 819 bytes --]
The example elisp code breaks tabbing more than once on the same line. Aligning
equal signs in a struct becomes problematic. Fix it.
Signed-off-by: Greg Donald <gdonald@gmail.com>
---
Documentation/CodingStyle | 2 ++
1 file changed, 2 insertions(+)
diff --git a/Documentation/CodingStyle b/Documentation/CodingStyle
index 7fe0546..287d22f 100644
--- a/Documentation/CodingStyle
+++ b/Documentation/CodingStyle
@@ -512,6 +512,8 @@ values. To do the latter, you can stick the following in your .emacs file:
(setq indent-tabs-mode t)
(c-set-style "linux-tabs-only")))))
+(global-set-key (kbd "TAB") 'self-insert-command)
+
This will make emacs go better with the kernel coding style for C
files below ~/src/linux-trees.
--
1.8.3.2
--
Greg Donald
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 490 bytes --]
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Docs: Fix elisp code so tabbing more than once works
2014-04-14 0:23 [PATCH] Docs: Fix elisp code so tabbing more than once works Greg Donald
@ 2014-04-14 0:45 ` Joe Perches
0 siblings, 0 replies; 2+ messages in thread
From: Joe Perches @ 2014-04-14 0:45 UTC (permalink / raw)
To: Greg Donald; +Cc: Randy Dunlap, linux-doc, linux-kernel
On Sun, 2014-04-13 at 19:23 -0500, Greg Donald wrote:
> The example elisp code breaks tabbing more than once on the same line. Aligning
> equal signs in a struct becomes problematic. Fix it.
[]
> diff --git a/Documentation/CodingStyle b/Documentation/CodingStyle
[]
> +(global-set-key (kbd "TAB") 'self-insert-command)
This prevents easy indentation alignment via the tab key.
Try using "ctrl-q tab" instead.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-04-14 0:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-14 0:23 [PATCH] Docs: Fix elisp code so tabbing more than once works Greg Donald
2014-04-14 0:45 ` Joe Perches
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.