Reformat code
This commit is contained in:
parent
993f23c7be
commit
416acd4a35
1 changed files with 4 additions and 5 deletions
|
@ -249,11 +249,10 @@ an ALIAS and SERVICE as arguments and call
|
||||||
(sentinel (lambda (process signal)
|
(sentinel (lambda (process signal)
|
||||||
(when (memq (process-status process) '(exit signal))
|
(when (memq (process-status process) '(exit signal))
|
||||||
(message "Process: %s %s" process signal)))))
|
(message "Process: %s %s" process signal)))))
|
||||||
(make-process
|
(make-process :name process-name
|
||||||
:name process-name
|
:buffer buffer
|
||||||
:buffer buffer
|
:command `("ssh" ,host "sudo" "tail -f" ,filepath)
|
||||||
:command `("ssh" ,host "sudo" "tail -f" ,filepath)
|
:sentinel sentinel)))
|
||||||
:sentinel sentinel)))
|
|
||||||
|
|
||||||
(defmacro mk/define-remote-log-function (alias service &optional filename)
|
(defmacro mk/define-remote-log-function (alias service &optional filename)
|
||||||
"Define a function to asynchronously tail a remote log file."
|
"Define a function to asynchronously tail a remote log file."
|
||||||
|
|
Loading…
Add table
Reference in a new issue