2

I'm new to Emacs. I recently got a dot-emacs configuration from GitHub. Cloned the repo in my home directory as .emacs.d

This is for setting up a clojure environment. When i open Emacs and enter M-x nrepl-jack-in, the minibuf displays 'No Match'

What am I doing incorrectly? Thanks!

  • Whose config did you clone? That's kinda important. – event_jr May 26 '13 at 15:11
  • 1
    It was in his previous question: https://github.com/ghoseb/dotemacs - it looks like a rough reworking of Emacs Live. – Chris Barrett May 26 '13 at 15:19
  • Yup, that's the one. You're one of the most helpful folks on this site. :) Thanks. – Karthik Kannan May 26 '13 at 15:47
  • What type of system are you on? Emacs is going to look for `.emacs.d` in your HOME folder, which may not be where you think if you're on Windows. – harpo May 26 '13 at 17:14
  • I'm using OS X Mountain Lion. – Karthik Kannan May 26 '13 at 17:23
  • 3
    What does Emacs report when you type `C-h v user-init-file RET` ? – phils May 26 '13 at 23:48
  • phils has the best solution here. I was having this same problem, unable to get spacemacs to start, and it turns out that the version I downloaded was precompiled to initialize from ~/.config/emacs/init.el rather than the standard ~/.emacs.d/init.el. Typing `C-h v user-init-file RET` showed me where it was looking, and I copied the spacemacs files into there and bingo. – Aaron Cooley Aug 28 '20 at 19:22

1 Answers1

2

It's possible that nREPL isn't being loaded. Add the following to your init.el:

(autoload 'nrepl-jack-in "nrepl" nil t)

You should be able to run it now with M-x nrepl-jack-in.


If the command doesn't work you'll need to do some troubleshooting.

  • make sure that nREPL is actually installed. You'll need both the Emacs library and the nREPL server.

  • check for any errors during startup. Launch Emacs from the terminal using the --d flag:

    emacs --d

    You will get a backtrace if anything goes wrong during the startup.

  • verify that your init.el is actually being loaded. Add the following code to the end of your init.el and restart Emacs.

    (message "---> LOADED")

    This will show in your *Messages* buffer if everything is being loaded.


Edit:

Looks like your init.el isn't being loaded. Check your home folder for files called .emacs or .emacs.el, which might be getting loaded instead.

Otherwise it could still be a path issue. Open a terminal and make sure this is the file you expect:

less ~/.emacs.d/init.el
Chris Barrett
  • 3,383
  • 17
  • 21