Questions tagged [python-mode]

Python-mode is a vim plugin that helps you to create python code very quickly by utilizing libraries including pylint, rope, pydoc, pyflakes, pep8, and mccabe for features like static analysis, refactoring, folding, completion, documentation, and more. (from GH)

150 questions
0
votes
0 answers

Setting up Completion in Emacs' python mode

After having seen this bug fix http://debbugs.gnu.org/cgi/bugreport.cgi?bug=18582 I wonder how I setup Emacs to provide completion of imports in python-mode. Further are there other completions possible in Emacs' builtin python.el?
Nordlöw
  • 11,838
  • 10
  • 52
  • 99
0
votes
1 answer

Emacs: how to make abbrevs work in python comments?

I'm trying to use abbrev-mode in python-mode. Abbrevs work fine in python code but doesn't work in python comments. How can I make them work in python comments too? Thanks.
alex_1948511
  • 6,073
  • 2
  • 20
  • 21
0
votes
1 answer

In vim python-mode, how can I get pep8-naming to work?

I've installed pep8 naming (https://pypi.python.org/pypi/pep8-naming) finchpowers@dev:~$ flake8 --version 2.1.0 (pep8: 1.5.7, pyflakes: 0.8.1, mccabe: 0.2.1, naming: 0.2.2) CPython 2.7.3 on Linux So it looks fine. In my .vimrc I have let…
Finch_Powers
  • 2,938
  • 1
  • 24
  • 34
0
votes
1 answer

python-mode-hook not working as I'd expect

I'm trying to tweak my emacs configuration to treat _ as a word character. I've added (add-hook 'python-mode-hook #'(lambda () (modify-syntax-entry ?_ "w"))) to my .emacs file, but it doesn't seem to work. If I execute (modify-syntax-entry ?_ "w")…
erikcw
  • 10,787
  • 15
  • 58
  • 75
0
votes
2 answers

emacs: abbrev-mode can't work in python-mode

I have defined some abbreviations for python mode by using code like this (define-abbrev-table 'python-mode-abbrev-table '( ("i_settings" "from django.conf import settings") ("i_requestcontext" "from django.template import…
YuYang
  • 321
  • 5
  • 11
0
votes
0 answers

Syntastic not checking python code

I have both syntastic and python-mode installed.. However, I want to syntax check using syntastic.. To do this, I have disabled pymode check with, let g:pymode_lint = 0 Also, when python file if opened, syntastic says that checker is present, but…
vibhor
  • 31
  • 6
0
votes
1 answer

Emacs python-mode.el

I am trying to get python-mode.el and ipython to work with emacs. I downloaded the newest GNU emacs and python-mode.el, put the files into .emacs.d/python-mode.el-6.1.2 and wrote the following in the emacs init file: ; Python-mode (setq…
0
votes
1 answer

How to make work in terminal.app on mac?

I want to use python-mode and jedi for autocompletion in Vim for python. However under my environment (vim 7.3 in terminal.app on OSX 10.8), I just cannot have the key-combination work. I read many related articles and knows that it is because…
0
votes
1 answer

Do python files need to be on the same drive as the plugin Python-mode for its functionality to work

I'm using the plugin python-mode for gVim on a windows machine. I have the following python-mode specific settings in my vimrc file: "------------------------------------------------------------ " settings for Python-mode "…
whytheq
  • 34,466
  • 65
  • 172
  • 267
0
votes
1 answer

Emacs Execution of Python script with C-c C-c goes Unrecognized

Setup: Emacs 24.2.1 running on Ubuntu 13.04 Using version provided by the software center ("modified by Debian"). Issue: The binding "C-c C-c" is not recognized with python.el (it does work on python-mode.el) even though C-h b lists it as a valid…
Rubenulis
  • 1,738
  • 1
  • 10
  • 10
0
votes
2 answers

emacs starter kit installation error

I just installed the starter-kit https://github.com/kjhealy/emacs-starter-kit on emacs 24.3. after finishing I have the the following error Warning (initialization): An error occurred while loading c:/emacs/.emacs.d/init.el': File error: Cannot…
sgetachew
  • 351
  • 1
  • 2
  • 12
0
votes
1 answer

Emacs Python Mode and Executing commands

I have emacs24 installed on windows in C:\Program Files(x64) and python2.7 under C:\Python27 I've tried to install python mode to send commands to the interpreter from emacs. My init.el file in Users/myname/.emacs.d: (setq py-install-directory…
SJWard
  • 3,629
  • 5
  • 39
  • 54
0
votes
1 answer

previous item in ipython console emacs shifts text to the left before console prompt

I am using python-mode 6.0.10 with the ipython console. When I try to bring up a previous history item it is shifted to the left preceeding the console input prompt e.g. In [51]: (hit M-p to get previous item) plt.plot(u_class)In[51]: (hitting M-p…
octi
  • 1,470
  • 1
  • 17
  • 28
0
votes
2 answers

Understanding which python mode is loaded by emacs / Aquamacs and why

I have emacs 24.1.1, which comes with GNU's python.el in byte-compiled form at emacs/24.1/lisp/progmodes. I downloaded Fabian Gallina's python.el (note the same name) and placed it at emacs/site-lisp, which is part of emacs' load-path. When I edit a…
Dan
  • 763
  • 3
  • 8
  • 13
-3
votes
1 answer

Which Module do I use In python to browse, Copy and paste Files in Directories

I want to add a function in my program that when called , opens a browsing window like ones that open when you click on browse to change directory location in a setup. I want it to let me browse through directories , select a file and when I select…
1 2 3
9
10