feat(emacs): allow user to provide extra commands to lean-server
This commit is contained in:
parent
84715c12eb
commit
30817aa2b1
2 changed files with 12 additions and 4 deletions
|
@ -134,10 +134,12 @@
|
||||||
"Create lean-server process."
|
"Create lean-server process."
|
||||||
(let ((process-connection-type nil)
|
(let ((process-connection-type nil)
|
||||||
(lean-server-process
|
(lean-server-process
|
||||||
(start-process lean-server-process-name
|
(apply 'start-process
|
||||||
lean-server-buffer-name
|
(append (list lean-server-process-name
|
||||||
(lean-get-executable lean-executable-name)
|
lean-server-buffer-name
|
||||||
lean-server-option)))
|
(lean-get-executable lean-executable-name)
|
||||||
|
lean-server-option)
|
||||||
|
lean-server-options))))
|
||||||
(set-process-coding-system lean-server-process 'utf-8 'utf-8)
|
(set-process-coding-system lean-server-process 'utf-8 'utf-8)
|
||||||
(set-process-filter lean-server-process 'lean-server-output-filter)
|
(set-process-filter lean-server-process 'lean-server-output-filter)
|
||||||
(set-process-sentinel lean-server-process 'lean-server-handle-signal)
|
(set-process-sentinel lean-server-process 'lean-server-handle-signal)
|
||||||
|
|
|
@ -54,6 +54,12 @@ show both of expressions and types.")
|
||||||
(defcustom lean-server-retry-time 0.1
|
(defcustom lean-server-retry-time 0.1
|
||||||
"Retry interval for event-handler")
|
"Retry interval for event-handler")
|
||||||
|
|
||||||
|
(defcustom lean-server-options nil
|
||||||
|
"Additional command line options for the Lean background
|
||||||
|
process used to perform tasks such as type information and
|
||||||
|
perform auto-completion"
|
||||||
|
:group 'lean)
|
||||||
|
|
||||||
(defcustom lean-flycheck-use t
|
(defcustom lean-flycheck-use t
|
||||||
"Use flycheck for lean."
|
"Use flycheck for lean."
|
||||||
:group 'lean
|
:group 'lean
|
||||||
|
|
Loading…
Reference in a new issue