Skip to contentSkip to conversation

Docs: Fix elisp code so tabbing more than once works

PATCH In review Greg Donald 2 participants 2 messages Apr 14, 2014 Documentation

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Docs: Fix elisp code so tabbing more than once works

The example elisp code breaks tabbing more than once on the same line. Aligning equal signs in a struct becomes problematic. Fix it.

---
 Documentation/CodingStyle | 2 ++
 1 file changed, 2 insertions(+)
Documentation/CodingStyle +2 -0
index 7fe0546..287d22f 100644
@@ -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.
 
Signature · 5 lines
1.8.3.2


-- 
Greg Donald
#1 lore raw
Quoted 2 lines · Greg Donald

The example elisp code breaks tabbing more than once on the same line. Aligning equal signs in a struct becomes problematic. Fix it.

[]

Documentation/CodingStyle

Quoted 1 line
Documentation/CodingStyle +0 -0

[]

Quoted 1 line

+(global-set-key (kbd "TAB") 'self-insert-command)

This prevents easy indentation alignment via the tab key. Try using "ctrl-q tab" instead.