-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path.dir-locals.el
27 lines (26 loc) · 1.29 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
27
;;; Directory Local Variables
;;; For more information see Emacs manual: Per-Directory Local Variables
(
;; projectile: registration new project type
(nil . ((eval . (let ((project-file "uvm_tb/cross_bar_tb.sv"))
(if (and (eq 'generic (projectile-project-type))
(file-exists-p project-file))
(progn
(projectile-register-project-type
'verilog-cross-bar (list project-file)
:compile "make compile"
:compilation-dir "sim/"
:test "make test_write"
:test-dir "sim/")
;; :run "quartus/build.sh") ; TODO: how run script from directory?
(projectile-invalidate-cache nil)))))))
("uvm_tb" .
((verilog-mode . ((yura/verilog-buffer-style . uvm)))
(verilog-mode . ((eval add-hook
'before-save-hook
#'yura/verilog-add-or-overwrite-identifiers nil :local)))))
("agents" .
((verilog-mode . ((yura/verilog-buffer-style . uvm)))
(verilog-mode . ((eval add-hook
'before-save-hook
#'yura/verilog-add-or-overwrite-identifiers nil :local))))))