feat(emacs): allow user to provide extra commands to lean-server

This commit is contained in:
Leonardo de Moura 2015-01-15 16:48:24 -08:00
parent 84715c12eb
commit 30817aa2b1
2 changed files with 12 additions and 4 deletions

View file

@ -134,10 +134,12 @@
"Create lean-server process."
(let ((process-connection-type nil)
(lean-server-process
(start-process lean-server-process-name
lean-server-buffer-name
(lean-get-executable lean-executable-name)
lean-server-option)))
(apply 'start-process
(append (list lean-server-process-name
lean-server-buffer-name
(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-filter lean-server-process 'lean-server-output-filter)
(set-process-sentinel lean-server-process 'lean-server-handle-signal)

View file

@ -54,6 +54,12 @@ show both of expressions and types.")
(defcustom lean-server-retry-time 0.1
"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
"Use flycheck for lean."
:group 'lean