forked from matijapretnar/eff
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.dir-locals.el
26 lines (25 loc) · 1.1 KB
/
.dir-locals.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
;; Support for compiling in subdirectories from Emacs. Adapted from Coq source.
((nil
. ((eval
. (progn
;; root directory (ending with slash)
(let ((eff-root-directory
(when buffer-file-name
(locate-dominating-file buffer-file-name ".dir-locals.el")))
(eff-project-find-file
(and (boundp 'eff-project-find-file) eff-project-find-file)))
;; eff tags file
(when eff-root-directory
(setq tags-file-name (concat eff-root-directory "TAGS"))
(add-to-list 'compilation-search-path eff-root-directory)
;; Setting the compilation directory to eff root. This is
;; mutually exclusive with the setting of default-directory
;; below.
(if (not eff-project-find-file)
(setq compile-command (concat "make -C " eff-root-directory)))
)
(setq eff-executable (concat eff-root-directory "eff.native")))))))
(tuareg-mode
(show-trailing-whitespace . t))
(eff-mode
(show-trailing-whitespace . t)))