Questions tagged [python.el]

python.el is an emacs mode for programming in Python.

GNU Emacs has programming modes for different programming languages.

python.el is the programming mode for the Python programming language.

It is part of the official GNU Emacs package.

Ref

11 questions
43
votes
1 answer

Emacs Inferior Python shell shows the send message with each python-shell-send-region command

I am using the Python inferior shell on OS X (El Capitan) and every time I send a piece of code to the Python process (using C-c C-r which is bound to python-shell-send-region) I get a message like this in the Python shell: >>> import codecs, os; …
s.yadegari
  • 603
  • 6
  • 9
3
votes
3 answers

Set Python project root in Emacs?

emacs-for-python (based on python.el) provides nice capability to start Python process and send buffer there right from Emacs (normally you do it with C-c C-c). However, this way new process is created for every buffer, and Python's working…
ffriend
  • 27,562
  • 13
  • 91
  • 132
2
votes
0 answers

Emacs Python Mode Not Showing Ending Block

In Emacs 24.2, in python-mode when hitting tab to indent, it prints out at the bottom which block this level closes. In Emacs 24.3 (which I believe updates python-mode to use python.el), this does not happen anymore. It usually prints something…
darksky
  • 20,411
  • 61
  • 165
  • 254
1
vote
3 answers

Emacs: Why major mode is not set correctly when file is opened?

Why major mode is not automatically set to python-mode when I open a .py file (emacs test.py)? Some parts of my .emacs that deal with python are: (setq python-shell-interpreter "ipython" python-shell-interpreter-args "--gui=wx --matplotlib=wx…
Allan Felipe
  • 201
  • 2
  • 8
1
vote
2 answers

Emacs24 and python-mode: indention in docstrings

I have the following code/text: def f(): """ Return nothing. .. NOTE:: First note line second note line In Emacs23 (23.4.1) I was able to press TAB in the last line ("second note line"; nomatter how this line was indented) and…
Daniel Krenn
  • 251
  • 2
  • 9
1
vote
2 answers

looking for help in configuring .emacs file for python (python.el),

My emacs version is 24.5, using in built python. I have written these lines in my .emacs for it: (require 'python) (setq python-shell-interpreter "C:/Python34") The problem is none of the commands (when I am trying to run test.py) are working. I…
Arun Kumar Khattri
  • 1,519
  • 15
  • 25
1
vote
1 answer

how to configure python.el for emacs to use python3 shell?

I am new to emacs. I installed emacs24 which has a built-in python mode(python.el). I cannot find this file and don't know how to configure it to use python3 shell (it's using python2.7 as default). Thannks
1
vote
1 answer

Eval region ipython interpreter in aquamacs

I'm trying to make Aquamacs 3.0a GNU Emacs 24.3.50.2 work with iPython 1.2.0 as the interpreter. I was able to get iPython basically working using the instructions in python.el. In particular, I added the settings given in the top answer here to my…
Mike McCoy
  • 263
  • 1
  • 11
0
votes
0 answers

When using run-python, how do I keep my window orientation in Emacs?

I have 2 buffers open in emacs, vertically split. One buffer is a .py file, another buffer is the run-python buffer. When I C-c C-c, my .py code to the run-python buffer, the buffer changes from vertical to horizontal orientation, and it's driving…
0
votes
1 answer

Emacs 24's python.el + ipython cannot complete module names

I'm using Emacs 24.4.1 on OSX (installed with Homebrew), with the built in python.el, and Python 3 (also installed with Homebrew), along with IPython 2.3.0. I have this in my .emacs: (setq python-shell-interpreter "/usr/local/bin/ipython3" …
cjauvin
  • 3,433
  • 4
  • 29
  • 38
0
votes
2 answers

Emacs: Altering python.el indentation in derived mode

I am attempting to derive a new emacs mode from python.el (the current official gnu one) for Boo and I am having trouble with altering the indentation. Does anyone have any suggestions about how to best handle this? I do not need to change anything…
cacti
  • 475
  • 3
  • 15