changeset 13114:7600200a54c8

Exclude /gnulib/ from Emacs' C++ mode for .h files
author Jordi Gutiérrez Hermoso <jordigh@octave.org>
date Wed, 07 Sep 2011 18:48:00 -0500
parents 40f935b15a22
children cd808de114c1 8a1896fb82d4
files .dir-locals.el
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/.dir-locals.el	Wed Sep 07 18:12:26 2011 -0500
+++ b/.dir-locals.el	Wed Sep 07 18:48:00 2011 -0500
@@ -3,7 +3,8 @@
        (indent-tabs-mode . nil)
        (fill-column . 72)
        (eval . (when (string-match "\\.h\\'" (buffer-file-name))
+                 (unless (string-match "/gnulib/" (buffer-file-name))
                    (c++-mode)
-                   (c-set-style "gnu")))))
+                   (c-set-style "gnu"))))))
  (change-log-mode . ((indent-tabs-mode . t)))
  (makefile-mode . ((indent-tabs-mode . t))))