comparison .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 9ff04de067ce
comparison
equal deleted inserted replaced
13113:40f935b15a22 13114:7600200a54c8
1 ((nil . 1 ((nil .
2 ((c-file-style . "gnu") 2 ((c-file-style . "gnu")
3 (indent-tabs-mode . nil) 3 (indent-tabs-mode . nil)
4 (fill-column . 72) 4 (fill-column . 72)
5 (eval . (when (string-match "\\.h\\'" (buffer-file-name)) 5 (eval . (when (string-match "\\.h\\'" (buffer-file-name))
6 (unless (string-match "/gnulib/" (buffer-file-name))
6 (c++-mode) 7 (c++-mode)
7 (c-set-style "gnu"))))) 8 (c-set-style "gnu"))))))
8 (change-log-mode . ((indent-tabs-mode . t))) 9 (change-log-mode . ((indent-tabs-mode . t)))
9 (makefile-mode . ((indent-tabs-mode . t)))) 10 (makefile-mode . ((indent-tabs-mode . t))))