emacs indenting howto

From: Dan Carpenter
Date: Mon Jan 19 2009 - 07:57:18 EST


I don't think emacs understands tilda expansion. It didn't work for me.

regards,
dan carpenter

Signed-off-by: Dan Carpenter <error27@xxxxxxxxx>

--- orig/Documentation/CodingStyle 2009-01-16 17:46:16.000000000 +0300
+++ devel/Documentation/CodingStyle 2009-01-16 17:48:13.000000000 +0300
@@ -488,7 +488,7 @@
(let ((filename (buffer-file-name)))
;; Enable kernel mode for the appropriate files
(when (and filename
- (string-match "~/src/linux-trees" filename))
+ (string-match "/path/to/linux-trees" filename))
(setq indent-tabs-mode t)
(c-set-style "linux")
(c-set-offset 'arglist-cont-nonempty
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/