Python Interpretor in Emacs, removing input reprint

I am brand new to Emacs.

When python Emacs interpreter starts, it executes

>>> print(24)
print(24)
24

Is there a way to prevent my input from being reprinted and make it as below?

>>> print(24)
24

Thank you very much:)

+3
source share
1 answer

The trick is that in the buffer on which the python process is running, no comint-process-echoes.

There are a few other questions that are relevant to your problem.

How to turn off the echo

How to install emacs so that it always echoes off

But the main point is that you need to adjust the value comint-process-echoes. If you are new to emacs, you may not know that most settings are done using emacs lisp, where setting a variable looks something like this:

(setq variable-name new-value)

comint-process-echoes, lisp:

(setq comint-process-echoes t)

t lisp - "true."

, , emacs lisp , M-: (meta + colour). python + , (setq comint-process-echoes t) return. .

+7

All Articles