Clojurians
#lumo
<
2017-02-18
>

This page is not created by, affiliated with, or supported by Slack Technologies, Inc.

hlolli22:02:51

ok finally something that works, given that your emacs buffer is turned on inf-clojure-minor-mode and clojurescript-mode major mode (no cider!) This function should start lumo

(defun lumo-start (&optional port)
  (interactive)
  (let ((p (or port 5555)))
    (setq inf-clojure-program `("localhost" . ,p))
    (start-process-shell-command
     "lumo/inf-clj" nil
     (format "lumo -n %d" p))
    (sleep-for 1)
    (with-current-buffer (buffer-name)
      (inf-clojure inf-clojure-program)
      (split-window-sensibly) 
      (previous-window)
      (previous-buffer))))

(defun lumo-restart ()
  (interactive)
  (delete-process "lumo/inf-clj") 
  (switch-to-buffer "*inf-clojure*")
  (delete-process "inf-clojure")
  (kill-buffer-and-window)
  (lumo-start))