Mercurial > octave-libgccjit
view .dir-locals.el @ 17588:9ff04de067ce
improve .dir-locals.el
* .dir-local.el: Don't fail if buffer-file-name returns nil.
Use str-match-p instead of str-match. Simplify logic.
author | Rüdiger Sonderfeld <ruediger@c-plusplus.de> |
---|---|
date | Fri, 04 Oct 2013 23:32:38 +0200 |
parents | 7600200a54c8 |
children |
line wrap: on
line source
((nil . ((c-file-style . "gnu") (indent-tabs-mode . nil) (fill-column . 72) (eval . (when (and (buffer-file-name) (string-match-p "\\.h\\'" (buffer-file-name)) (not (string-match-p "/gnulib/" (buffer-file-name)))) (c++-mode) (c-set-style "gnu"))))) (change-log-mode . ((indent-tabs-mode . t))) (makefile-mode . ((indent-tabs-mode . t))))