-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.dir-locals.el
38 lines (36 loc) · 1.37 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
28
29
30
31
32
33
34
35
36
((nil
(eval . (let ((root (projectile-project-root)))
(let ((includes (list "/opt/psn00bsdk/include/libpsn00b"
(concat root "include")))
(neotreebuf (seq-filter (lambda (buf) (equal (buffer-name buf) " *NeoTree*"))
(buffer-list))))
(setq-local flycheck-clang-include-path includes)
(setq-local flycheck-gcc-include-path includes)
(dap-register-debug-template
"PSX Debug"
(list :name "PSX -- Engine debug"
:type "gdbserver"
:request "attach"
:gdbpath "/usr/bin/gdb-multiarch"
:target ":3333"
:cwd root
;;:executable (concat root "build/engine.elf")
;;:args (concat "-x " root "tools/gdbinit.txt")
;; :autorun (list "monitor reset shellhalt"
;; "load build/engine.elf"
;; "tbreak main")
))
;; (when neotreebuf
;; (with-current-buffer (first neotreebuf)
;; (let ((excluded '("\\pcsx.json$"
;; "\\.frag$"
;; "\\.vert$"
;; "\\.lua$"
;; "\\.mcd$")))
;; (unless (every (lambda (n) (not (null n)))
;; (mapcar (lambda (x) (member x neo-hidden-regexp-list))
;; excluded))
;; (setq neo-hidden-regexp-list
;; (append excluded (default-value 'neo-hidden-regexp-list)))
;; (neotree-refresh)))))
)))))