diff .dir-locals.el @ 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 3d7a4a2d9cef
children
line wrap: on
line diff
--- a/.dir-locals.el
+++ b/.dir-locals.el
@@ -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))))