aboutsummaryrefslogtreecommitdiff
path: root/README.org
blob: 636640aa3704db41bb96c7800cc5aff3bdfb6a08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
* norns shell

Get a lua shell or supercollider shell on a norns from the command-line, similar to the shell in the maiden interface.

Requires nanomsg. Install with ~sudo make install~.

#+BEGIN_SRC sh
# get a lua shell
./norns_shell
./norns_shell ws://norns.local:5555
# get a supercollider shell
./norns_shell ws://norns.local:5556
#+END_SRC

There's an example in ~example/~ of a project with a Makefile that uploads and loads when ~M-x compile~'d in emacs. This piece of emacs lisp may be helpful if you'd like to ~C-c C-c~ instead.

#+BEGIN_SRC lisp
(defun recursive-upwards-compile ()
  (interactive)
  (if (string-prefix-p "make" compile-command)
      (let ((directory (locate-dominating-file default-directory "Makefile")))
	(when directory
	  (cd directory)
	  (compile compile-command)
	  (message directory)))
    (compile compile-command)))

(add-hook 'lua-mode-hook
	  (lambda ()
	    (local-set-key (kbd "C-c C-c") 'recursive-upwards-compile)))
#+END_SRC