Hot answers tagged

12 votes

Your ‘python-shell-interpreter’ doesn’t seem to support readline

If you don't want to get a 25.2 rc, you can apply the bug fix by adding this to your init.el file: (with-eval-after-load 'python (defun python-shell-completion-native-try () "Return non-nil if ...
user avatar
  • 8,793
12 votes
Accepted

Inferior Lisp Mode vs Superior Lisp Mode

When you run a process inside Emacs, that process is "inferior" (i.e. a subprocess). IELM M-x ielm is the builtin Inferior Emacs Lisp Mode. It's relatively featureless, but can definitely come in ...
user avatar
  • 10k
9 votes

Emacs EIN vs IPython shell

You are correct that ein at tkf's repository on github only works with versions of IPython prior to 2.x. With that said, however, if you use this version you will find that it works with IPython 2.x ...
user avatar
7 votes
Accepted

Is it possible on Cider to eval on a repl and print as a comment every evaluation on a buffer?

Yes. C-u C-x C-e eval-last-sexp-and-insert , evaluates the last sexp and inserts it at point. or: in the cider-eval menu : eval-last-sexp-and-pretty-print-comment insert the output as a comment in ...
user avatar
  • 1,968
5 votes
Accepted

How do I protect command output in eshell and REPL buffers?

Modes that communicate with external shells should inherit from comint mode. eshell is an exception w.r.t this principle since it emulates almost all commands on elisp-base. First, setting output read-...
user avatar
  • 30.3k
5 votes
Accepted

How to get a fully functional Julia REPL in emacs?

There is a way! The problem with using term is that term doesn't understand some of the escape sequences Julia sends, which causes term to put a bunch of extra prompts on the screen that make it ...
user avatar
  • 768
5 votes
Accepted

emacs, geiser, chiken scheme on windows setup help

At a guess, your path to the Scheme implementation may be incorrect. Why do you think you need a backslash there? What do you want to quote/escape with it? Now, go to *scratch* buffer and evaluate ...
user avatar
  • 4,773
5 votes
Accepted

How to integrate SLIME with MIT Scheme?

I think geiser-mode may provide what you are looking for at least for guile and racket, but apparently not MIT Scheme. I know that provides M-. to jump to symbol definition in environment, completion, ...
user avatar
  • 3,984
4 votes

Emacs EIN vs IPython shell

I think EIN's main value was to be able to connect arbitrary buffers to the ipython kernel that corresponds to the notebook, therefore enabling cooperation of multiple Emacs "objects". But since EIN'...
user avatar
  • 4,440
4 votes

Haskell Interactive Mode Setup - cabal unrecognised command: repl

On my system (Fedora 20) the default cabal version that comes with the haskell-platform package is 1.16.0.2. After installing the latest cabal-install (cabal install cabal-install), I have a new ...
user avatar
  • 5,216
4 votes

Change syntax highlighting without changing major mode?

Every major mode that supports font-lock does so via font-lock-defaults. If you check python-mode, you'll see the following: (set (make-local-variable 'font-lock-defaults) '(python-font-lock-...
user avatar
4 votes

How can I connect to a REPL and send and read data?

What you are looking for is called comint-mode - the system which underlies most (all?) emacs interaction modes (lisp, scheme, shell, python, &c). Here are some starting points: Comint: Writing ...
user avatar
  • 5,477
4 votes

Your ‘python-shell-interpreter’ doesn’t seem to support readline

I had this disturbing warning in Emacs 25.1 too. https://debbugs.gnu.org/cgi/bugreport.cgi?bug=24401 has proper solution to enable colored-stats only for Bash: $ cat ~/.inputrc $if Bash set colored-...
user avatar
  • 3,132
4 votes
Accepted

Displaying a second buffer with a shell?

Is it correct to assume that you're new to Emacs? If yes, are you aware of how Emacs manages windows and that the term 'window' does not refer to what you think it does? The concepts 'windows' and '...
user avatar
3 votes
Accepted

cider-jack-in: Symbol's function definition is void: clojure-project-dir

Do you have clojure mode installed? Try M-x install-package clojure-mode if not and then run cider-jack-in.
user avatar
3 votes
Accepted

No native completion with python3 in Emacs 25.2

The native completion mechanism depends on the gnureadline python module. You can check if it's present by executing import readline print(readline.__doc__) at a python shell. The message ...
user avatar
  • 8,793
3 votes

Edebug REPL / IELM

The REPL interaction mode you are looking for is probably met by ielm (Inferior Emacs Lisp mode). Here's the start of a solution†: Open ielm-mode with M-x ielm. Advise ielm-eval-input to wrap the ...
user avatar
  • 6,834
3 votes
Accepted

How to load an Idris file that depends on a package?

The layer for idris in Spacemacs use this https://github.com/idris-hackers/idris-mode. So for my part, using spacemacs and helm, I succesfully load a file using contrib using the following shortcut: ...
user avatar
  • 146
2 votes
Accepted

Starting SLIME in a pop-up frame

You can achieve this by adjusting the value of display-buffer-alist: (setq display-buffer-alist (quote (("\\*inferior-lisp\\*" display-buffer-pop-up-frame (nil))))) This setting tells ...
user avatar
  • 8,952
2 votes

How to get python-x (eval-in-repl) to work?

Elpy can do that https://github.com/jorgenschaefer/elpy The command you are looking for would be elpy-shell-send-current-statement. You can also try elpy-shell-send-region-or-buffer Send the ...
user avatar
  • 1,639
2 votes
Accepted

Spacemacs trigger holy mode in major mode

By holy mode, do you mean the normal emacs mode? If so, you can easily switch between the two with C-z. EDIT. To automate this for a specific mode, try using evil-set-initial-state. I'm not ...
user avatar
  • 1,424
2 votes

ModuleNotFound for absolute imports in Emac's Python Repl

So it appears that emacs' built in python mode, at least as of 24.3, is now python.el rather than python-mode.el. This new version of python-mode for emacs does not, by default, remove the current ...
user avatar
  • 423
2 votes

How do I move the cursor to be just after the `>` character on the beggining of REPL evaluation?

backward-sexp, bound to C-M-b by default`, would do it. Of course, if you’re nested inside several s–expressions then you would need to press it multiple times. So perhaps you want beginning-of-defun, ...
user avatar
  • 11.8k
2 votes
Accepted

How do I move the cursor to be just after the `>` character on the beggining of REPL evaluation?

The slime REPL buffer is is REPL mode. You can get information about the mode with C-h m. That is useful in that it shows you the keymap for the mode, and among other things, you will see that C-c C-p ...
user avatar
  • 19.9k
2 votes
Accepted

Is there a way to automatically indent a parenthesis in Slime REPL after pressing `C-m o`?

C-j runs slime-repl-newline-and-indent which I think will work. Whenever I'm faced with an unfamiliar mode, I do C-h m which shows me mode information, including the keymaps: I can then zero in on the ...
user avatar
  • 19.9k
2 votes
Accepted

Why jshell doesn't work in comint-mode?

Comint doesn't provide a fully-functional terminal replacement. It passes input from the user to the shell, and prints the output back to the screen. It can handle some escape sequences, but that's ...
user avatar
  • 20.3k
1 vote

How to load an Idris file that depends on a package?

After trying @luc-duzan's answer, Spacemacs prompted me for whether to persist the setting. When I selected yes, the following was added to my buffer: -- Local Variables: -- idris-load-packages: ("...
user avatar
1 vote

Your ‘python-shell-interpreter’ doesn’t seem to support readline

I had this issue in Emacs 27 and Python 3.9, on Debian 11. My workaround was to wrap my ~/.inputrc with $if term=dumb, $else, and $endif. This disables all my psql and python tricks when run inside ...
user avatar
  • 11
1 vote
Accepted

How set python shell arguments with python-mode.el?

TL;DR Sample configuration: (setq-default py-shell-name "python" ; \ Default value under Unices py-python-command "python" ; / py-python-command-args '("-i" "/absolute/path/to/...
user avatar
  • 11.4k

Only top scored, non community-wiki answers of a minimum length are eligible