Add an example .dir-locals.el
[openssl.git] / doc / dir-locals.example.el
1 ;;; This is an example of what a .dir-locals.el suitable for OpenSSL
2 ;;; development could look like.
3 ;;;
4 ;;; Apart from setting the CC mode style to "OpenSSL-II", it also
5 ;;; makes sure that tabs are never used for indentation in any file,
6 ;;; and that the fill column is 78.
7 ;;;
8 ;;; For more information see (info "(emacs) Directory Variables")
9
10 ((nil
11   (indent-tabs-mode . nil)
12   (fill-column . 78)
13   ;; (auto-fill-mode . t)  ;; optional.
14   )
15  (c-mode
16   (auto-fill-mode . nil)   ;; auto-fill makes more harm than good in C
17   (c-file-style . "OpenSSL-II")))