fix(emacs/lean-tags): support windows
This commit is contained in:
parent
af4e18dd44
commit
3e4755db25
1 changed files with 14 additions and 5 deletions
|
@ -17,12 +17,21 @@
|
|||
(defun lean-generate-tags ()
|
||||
"Run linja TAGS and let emacs use the generated TAGS file."
|
||||
(interactive)
|
||||
(let ((ltags-file-name (lean-get-executable "linja")))
|
||||
(let* ((ltags-file-name (lean-get-executable "linja"))
|
||||
ltags-command)
|
||||
(setq ltags-command
|
||||
(cond ((string= system-type "windows-nt")
|
||||
|
||||
(append '("python" nil "*lean-tags*" nil)
|
||||
`(,ltags-file-name)
|
||||
lean-flycheck-checker-options
|
||||
'("tags")))
|
||||
(t
|
||||
(append `(,ltags-file-name nil "*lean-tags*" nil)
|
||||
lean-flycheck-checker-options
|
||||
'("tags")))))
|
||||
(message "Generating TAGS...")
|
||||
(apply 'call-process
|
||||
(append `(,ltags-file-name nil "*lean-tags*" nil)
|
||||
lean-flycheck-checker-options
|
||||
'("TAGS")))
|
||||
(apply 'call-process ltags-command)
|
||||
(message "TAGS generated.")
|
||||
(setq tags-table-list (lean-tags-table-list))))
|
||||
|
||||
|
|
Loading…
Reference in a new issue