clojure - How can I make nrepl-ritz-jack-in work remotely over TRAMP / Emacs

What I want:I have a clojure program on a remote site, let's call it mccarthy.What I want to do is connect to a nrepl-ritz from my laptop, preferably using nrepl-ritz-jack-in. The jack in works fine for a local program, but doesn't seem to connect to a remote program.Attempt 1C-x C-f on /mccarthy:code/program/project.clj(require 'nrepl-ritz)M-x nrepl-ritz-jack-inResultEmacs appears to hang. If I go to the *nrepl-server* buffer, I see this:Exception in thread "main" java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAcce...Read more

Setting up emacs/slime/swank for clojure with leiningen

Short version: errors when running M-x slime-connect or M-x clojure-jack-in when using lein swank to start the swank server.I'm using emacs on Ubuntu 10.10. I've installed the following packages in emacs from ELPA: clojure-mode, paredit, slime, slime-replI installed leiningen from github & added it to the classpath, then ran lein plugin install swank-clojure 1.3.3. After that I created a new directory ~/tmp/, cd into it and ran:lein new test-project which seemed to setup everything ok. Then I opened up /tmp/new-project/project.clj...Read more

clojure - Mac OSX, Emacs 24.2 and nrepl.el not working

I'm using nrepl.el, Emacs 24.2. My S.O version is OS X Lion 10.7.5.Running the command [M-x] nrepl after start a REPL session through lein (:~ $ lein repl) i am able to connect to it but if i try to use [M-x] nrepl-jack-in i get the message bellow: error in process sentinel: Could not start nREPL server: /bin/bash: lein: command not foundI installed leiningen using the instructions in the main site and reinstalled it using homebrew with the command brew install leiningen --devel but both methods give me the same error.Adding the path /usr/loc...Read more

emacs - How to use Cider's built-in autocompletion in Clojure?

According to this: The built-in completion logic in CIDER relies on the library clojure-complete, so you'll have to have it your classpath for completion to work. If you're connecting to an nREPL server started from lein (e.g. you invoked M-x cider-jack-in) - there's nothing for you to do. So -- I'm using an nREPL jack in with Emacs 24.3, so I would guess that there is "nothing for me to do." However, I am not getting any autocompletion in my Clojure source files.I uninstalled and reinstalled Cider via Elpa to be safe. Apparently it is not nec...Read more

Using local jar files with emacs clojure/cider mode and REPL

I'm trying to use functions from other jar files. Creation of local jar fileI downloaded sample sources from the book Programming Clojure 2nd Ed, and created a jar file with lein jar command. Use the local jar fileFrom the hints in this post, I copied the jar file in lib/ directory, then I could add :resource-paths ["lib/programming-clojure-1.3.0.jar"] in the project.clj. Test in REPLWith lein classpath command, I could check that the jar file is in class path. With lein repl, I could use the functions in the jar file. mire=> (require '[exam...Read more

error when using load-theme from emacs

I am running emacs and when I add the following line(load-theme 'wombat t)I get the following error when I try and start emacs: Fatal error 6: Abort trap^[[>0;95;c/usr/local/bin/emacs: line 2: 676 Abort trap: 6 /usr/local/Cellar/emacs/HEAD/ -nw "$@"The same thing happens when I enter the command:load-them <RET> wombat...Read more

Emacs and Cider for Clojure development in Ubuntu 14.04

I am trying to use Emacs and Cider for Clojure development.I have installed Cider and Java JDK 7 and also (I think) I have installed Leiningen. I use Ubuntu 14.04 and I saved the lein file for the Leiningen installation in my home directory, made it executable and run it. After that I don't know how to start programming using Emacs and compile my code. I have searched everywhere and after all the installations a lot of internet sources mention to try M-x cider-jack-in. When I do that I get:"The lein executable (specified by `cider-lein-command'...Read more

Executing Clojure in Emacs with `cider-jack-in`

I'm trying to run Clojure emacs with cider package installed. I use Emacs 24.5.1 on Mac OS X 10.10.4. I downloaded lein script and copied the script in ~/Dropbox/bin. I checked with lein repl that Clojure works fine. cider package is installed with M-x package-install. I edited the ~/.emacs.d/init.el to specify the lein script: (add-to-list 'exec-path "~/Dropbox/bin") with the hint from Can't launch `lein` REPL in Emacs.However, when I started emacs and run M-x cider-jack-in, I have this error message:When I started lein repl and executed M...Read more

emacs - Spawning child processes returns invalid argument

I have a class this semester that requires a lisp dialect so I'm trying to get started with Clojure but I'm running into a lot of problems setting up my environment.I'm on a Windows machine and am following the tutorial at to set up emacs which from my research seems like the best IDE for working with lisp. I had Cygwin installed before starting which supposedly has a lot of support for emacs but I'm not sure if I need to do more than just have it installed.My problems is when I try to start a REPL in em...Read more

emacs - How do I find the standard library function I need?

I am a beginner with Elisp development, and am starting to get the hang of the syntax and data types, but I find it cumbersome to find standard library functions when I need them. They are not systematically named, so I can’t assume that for example a buffer handling function always begins with the word buffer. What I usually do is to google, and eventually find the answer, and then return to Emacs. But there must be a more efficient way to search the standard library from within Emacs, right? Which not only searches the function names, but als...Read more

emacs - How to transfer files with Tramp using scp or rsync

I've read the TRAMP manual and dozens of forums across the web but I couldn't find an answer to this question. I am trying to set up a link in org-mode that transfers a file from a remote server to my local machine (or vice-versa).According to the manual I have to write something like/scp:user@host:filepathonremotemachineand that's it. No specification of where the file should be moved to, which is weird. I've tried to do it this way and it simply opened the file (as if I was using ssh); tried other combinations also, without any luck.There is ...Read more

Trouble with Emacs Tramp when trying to sudo access remote file

In Emacs25 I used the recommended syntax to open a remote file in sudo mode:find-file "/ssh:ichiban@izu|sudo:ichiban@izu:~/but Emacs just hangs. I set some degging settings in my .emacs file:(require 'tramp);(setq tramp-debug-buffer t)(setq tramp-verbose 10); to enable tracing in tramp(require 'trace)(dolist (elt (all-completions "tramp-" obarray 'functionp)) (trace-function-background (intern elt)))(untrace-function 'tramp-read-passwd)(untrace-function 'tramp-gw-basic-authentication)but the resultant information is no help.To see that inform...Read more

Applying custom face in emacs

I wanted to make a derived mode for python-mode to add custom keywords and color. So I retreived the part of the code that defines the face of the keywords and added my own keywords.If I use an already existing face it works just fine. But I want to use custom faces so it doesn't change color if in the same time of other faces.I search how to define a face and end up with this:(defface printr-face '((t :foreground "red" :weight bold)) "Face for printr function" :group 'python-print-color-faces)the part of the code I try to apply it (inside t...Read more