parent
7d827a14c9
commit
c9ffc2fec8
1 changed files with 5 additions and 0 deletions
|
@ -51,10 +51,15 @@
|
||||||
(interactive)
|
(interactive)
|
||||||
(let* ((lean-path-env-list
|
(let* ((lean-path-env-list
|
||||||
(parse-colon-path (getenv "LEAN_PATH")))
|
(parse-colon-path (getenv "LEAN_PATH")))
|
||||||
|
(lean-mode-option
|
||||||
|
(pcase (lean-choose-minor-mode-based-on-extension)
|
||||||
|
(`standard "--lean")
|
||||||
|
(`hott "--hlean")))
|
||||||
(lean--path-list
|
(lean--path-list
|
||||||
(parse-colon-path
|
(parse-colon-path
|
||||||
(ignore-errors
|
(ignore-errors
|
||||||
(car (process-lines (lean-get-executable lean-executable-name)
|
(car (process-lines (lean-get-executable lean-executable-name)
|
||||||
|
lean-mode-option
|
||||||
"--path")))))
|
"--path")))))
|
||||||
(project-dir (f--traverse-upwards (f-exists? (f-expand ".project" it))
|
(project-dir (f--traverse-upwards (f-exists? (f-expand ".project" it))
|
||||||
(f-dirname (buffer-file-name))))
|
(f-dirname (buffer-file-name))))
|
||||||
|
|
Loading…
Reference in a new issue