all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Clojure Mode - `nrepl-jack-in' gives error
@ 2014-04-18 11:18 Thorsten Jolitz
  2014-04-18 11:24 ` Bastien
  0 siblings, 1 reply; 5+ messages in thread
From: Thorsten Jolitz @ 2014-04-18 11:18 UTC (permalink / raw)
  To: help-gnu-emacs


Hi List, 

[this was posted on the clojure list too, but on 2nd thought it looks
more like and Emacs than and Clojure question]

I just installed lein2 and can start 'lein2 repl' successfully on the
command-line. 'lein repl' works too, since I defined an alias in my
.bashrc. 

After installing packages clojure-mode and nrepl in Emacs, I get this
error when trying `nrepl-jack-in':

,-------------------------------------------------------------------------
| error in process sentinel: Could not start nREPL server: /bin/bash: Line
| 1: lein: Command not found.
`-------------------------------------------------------------------------

I'm on Archlinx with

#+begin_src emacs-lisp
 (emacs-version)
#+end_src

#+results:
: GNU Emacs 24.3.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.7)
:  of 2014-01-28 on var-lib-archbuild-extra-x86_64-juergen

I googled some related sites and it seems it might be an Emacs (exec-) path
problem, but a reboot did not help. I don't find any reference to
leiningen/clojure/nrepl in Emacs exec-path nor in '$ echo $PATH', but
things work on the command-line, but not from Emacs. 

-- 
cheers,
Thorsten





^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Clojure Mode - `nrepl-jack-in' gives error
  2014-04-18 11:18 Clojure Mode - `nrepl-jack-in' gives error Thorsten Jolitz
@ 2014-04-18 11:24 ` Bastien
  2014-04-18 11:42   ` Thorsten Jolitz
  0 siblings, 1 reply; 5+ messages in thread
From: Bastien @ 2014-04-18 11:24 UTC (permalink / raw)
  To: Thorsten Jolitz; +Cc: help-gnu-emacs

Hi Thorsten,

Thorsten Jolitz <tjolitz@gmail.com> writes:

> After installing packages clojure-mode and nrepl in Emacs

You mean CIDER, right?  Otherwise please do install CIDER,
this is the replacement for nrepl:

https://github.com/clojure-emacs/cider

-- 
 Bastien



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Clojure Mode - `nrepl-jack-in' gives error
  2014-04-18 11:24 ` Bastien
@ 2014-04-18 11:42   ` Thorsten Jolitz
  2014-04-18 11:46     ` Bastien
  0 siblings, 1 reply; 5+ messages in thread
From: Thorsten Jolitz @ 2014-04-18 11:42 UTC (permalink / raw)
  To: help-gnu-emacs

Bastien <bzg@altern.org> writes:

Hi Bastien,

> Thorsten Jolitz <tjolitz@gmail.com> writes:
>
>> After installing packages clojure-mode and nrepl in Emacs
>
> You mean CIDER, right?  Otherwise please do install CIDER,
> this is the replacement for nrepl:
>
> https://github.com/clojure-emacs/cider

No, I had never heard of it ... thanks for the tip! So I was on the
wrong (i.e. outdated) track wrt to Clojure & Emacs, no wonder it did not
work ...

-- 
cheers,
Thorsten




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Clojure Mode - `nrepl-jack-in' gives error
  2014-04-18 11:42   ` Thorsten Jolitz
@ 2014-04-18 11:46     ` Bastien
  2014-04-18 12:28       ` Thorsten Jolitz
  0 siblings, 1 reply; 5+ messages in thread
From: Bastien @ 2014-04-18 11:46 UTC (permalink / raw)
  To: Thorsten Jolitz; +Cc: help-gnu-emacs

Thorsten Jolitz <tjolitz@gmail.com> writes:

> No, I had never heard of it ... thanks for the tip! So I was on the
> wrong (i.e. outdated) track wrt to Clojure & Emacs, no wonder it did not
> work ...

Since we're at it, here is my setup:

clojure-mode / cider / company-mode

all them installed from ELPA.

And some useful settings:

(require 'cider)
(require 'company)
(require 'company-cider)
(setq nrepl-hide-special-buffers t)
(setq cider-repl-pop-to-buffer-on-connect nil)
(setq cider-popup-stacktraces nil)
(setq cider-repl-popup-stacktraces t)
(setq org-babel-clojure-backend 'cider)
(add-hook 'clojure-mode-hook 'turn-on-orgstruct)
(eval-after-load 'company '(add-to-list 'company-backends 'company-cider))

Enjoy!

-- 
 Bastien



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Clojure Mode - `nrepl-jack-in' gives error
  2014-04-18 11:46     ` Bastien
@ 2014-04-18 12:28       ` Thorsten Jolitz
  0 siblings, 0 replies; 5+ messages in thread
From: Thorsten Jolitz @ 2014-04-18 12:28 UTC (permalink / raw)
  To: help-gnu-emacs

Bastien <bzg@altern.org> writes:

> Thorsten Jolitz <tjolitz@gmail.com> writes:
>
>> No, I had never heard of it ... thanks for the tip! So I was on the
>> wrong (i.e. outdated) track wrt to Clojure & Emacs, no wonder it did not
>> work ...
>
> Since we're at it, here is my setup:
>
> clojure-mode / cider / company-mode
>
> all them installed from ELPA.
>
> And some useful settings:
>
> (require 'cider)
> (require 'company)
> (require 'company-cider)
> (setq nrepl-hide-special-buffers t)
> (setq cider-repl-pop-to-buffer-on-connect nil)
> (setq cider-popup-stacktraces nil)
> (setq cider-repl-popup-stacktraces t)
> (setq org-babel-clojure-backend 'cider)
> (add-hook 'clojure-mode-hook 'turn-on-orgstruct)
> (eval-after-load 'company '(add-to-list 'company-backends
> 'company-cider))

Installed and copied 1 to 1 into my init.el (except orgstruct because
for obvious reasons I rather use outline-minor-mode/outshine) - and it
works like a charm now.

Thanks a lot!

-- 
cheers,
Thorsten




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-04-18 12:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-18 11:18 Clojure Mode - `nrepl-jack-in' gives error Thorsten Jolitz
2014-04-18 11:24 ` Bastien
2014-04-18 11:42   ` Thorsten Jolitz
2014-04-18 11:46     ` Bastien
2014-04-18 12:28       ` Thorsten Jolitz

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.