emacs - Running 'lein swank' (calling clojure server) with elisp -
is called and answered. I can use 'Lean Scank' to run Closer on Aquamacs.
I have to automate to run 'Lean Squank' before running Slim / Closer.
- Question: Is this a way to automatically? I mean, when I am called Slim / Closer (M-X slim-connect), then how can I run myself 'Lean Smooth'?
- Question: If I want to come up with Ellipse code to run 'Lean Snamen', how can I do this?
added
Based on the answer to Jürgen Hottzel, I modified the elisp in this way.
(defun lein-swank (interactive) (lets ((default-directory (location-dominated default-directory "/ user / smo / bin / leiningen")) (when (not Default directory) (error "not in a leiningen project.")) ;; You can customize slime-port. Dir-localals.el (let ((proc (projection process ("Process: Product output zero" ) Set-Process-Sentinel (proc event) (Message "% s% s:`% S '"(process-proc proc: output) proc (replace (Set-process-filter pro (lambda (cock output);; Record the last line of the output until the connection (potential e-rubber message) (process- Play Proc: Output (Cockat (Processor-Proc: Output) Output) (When (String-match "Connection" opened on Output) (Slim-Connect "Localhost" 4005);; Further processing output is not required (set) -process-filter act neil)) (message "Starting server ...")))))
But, I got this error
I have an abstract job for this:
Simply use the interactive command "Mx Lean-Swank", which will create the command in the current directory and connect to it. Several improvements were made in
I Lean-Scank :
-
lein-swank-command Optimizable: You can use leasing if its bin directory is not part of your PATH environment.
-
The logic added to the directory as interactive: if project.clj is not in the dominant position of your current directory If you can get it, you can specify a location.
Comments
Post a Comment