forked from UniMath/UniMath
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.dir-locals.el
25 lines (25 loc) · 1.23 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
((coq-mode
. ((eval .
(let ((unimath-topdir (expand-file-name (locate-dominating-file buffer-file-name "UniMath"))))
(setq fill-column 100)
(make-local-variable 'coq-use-project-file)
(setq coq-use-project-file nil)
(make-local-variable 'coq-prog-args)
(setq coq-prog-args
;; these options should match what's used in ../Makefile
`("-quiet" "-emacs" "-noinit" "-indices-matter" "-type-in-type" "-w" "-notation-overridden" "-Q" ,(concat unimath-topdir "UniMath") "UniMath" )
)
(make-local-variable 'coq-prog-name)
(setq coq-prog-name (concat unimath-topdir "sub/coq/bin/coqtop"))
(make-local-variable 'before-save-hook)
(add-hook 'before-save-hook 'delete-trailing-whitespace)
(modify-syntax-entry ?' "w")
(modify-syntax-entry ?_ "w")
(if (not (memq 'agda-input features))
(load (concat unimath-topdir "emacs/agda/agda-input")))
(if (not (member '("chimney" "╝") agda-input-user-translations))
(progn
(setq agda-input-user-translations (cons '("chimney" "╝") agda-input-user-translations))
(setq agda-input-user-translations (cons '("==>" "⟹") agda-input-user-translations))
(agda-input-setup)))
(set-input-method "Agda"))))))