python-mode Questions
4
Solved
I'm using python-mode for Vim, I prefer for there to be 120 character lines rather than the stark 80 as defined in the PEP8 standard.
In python-mode, this is easy. I just add the following to my ~...
Malocclusion asked 23/1, 2015 at 20:54
4
Solved
I want to turn on linum mode (M-x linum-mode) automatically with python and c mode.
I add the following code in .emacs, but it doesn't seem to work.
(defun my-c-mode-common-hook ()
(line-number-...
Bailiwick asked 6/10, 2010 at 17:21
2
Solved
As shown in the following screen-cast, I demonstrate the strange behaviors of Vim when it comes to adding comments to Python code. Between Demo 1 and Demo 2, I was only starting the line of comment...
Presidentelect asked 3/7, 2017 at 23:31
4
Solved
I have recently switched to vim and configured it for Python-programming using this tutorial. Before, I have made sure that vim supports python3 (vim --version shows +python/dyn and +python3/dyn) u...
Tardy asked 25/5, 2015 at 19:31
2
Solved
Background:
I'm using the (fantastic) Vim plugin python-mode, which includes the pep8 linter. The :PyLint command runs all linters and opens errors in a QuickFix window.
Problem:
Now, let's assu...
Mcgaha asked 8/6, 2012 at 6:26
4
Solved
I just started using python-mode in emacs and I noticed that while the major mode has an option for commenting out a region ((py-comment-region) which is bound (C-c #))there is no option to uncomme...
Calcimine asked 12/9, 2012 at 5:26
3
Solved
When I use emacs python-mode, if the last character of a line is an open parenthesis it indents the next line just one step in from the indentation of the previous line.
call_some_function(
some_...
Koehler asked 25/9, 2009 at 3:28
3
I recently downloaded Python-Mode. When I open a python script, my functions are folded. I can unfold easily (it's one of the movement keys when you're on top the function definition). However, I c...
Modlin asked 10/5, 2014 at 8:55
3
Solved
I've been using Vim and pathogen for a while, and things were working fine, but recently I've started having load order issues with my ftplugin configuration.
The specific problem I'm having right...
Whitsunday asked 17/11, 2013 at 22:17
6
I'm trying to configure Emacs23.2 to work with python2.7.3, using the package python-mode.el-6.0.7
After adding to my .emacs file these LISP lines, as indicated in the INSTALL instructions,...
(...
Huttan asked 18/5, 2012 at 0:53
4
Solved
I have installed python-mode in VIM. But I also have Syntastic installed. Since both do syntax checking, is there going to be a conflict? How can I turn off Syntastic for Python files?
Thanks for ...
Ob asked 6/10, 2013 at 13:2
3
Solved
Is there a way to force a new instance of python-shell while running Emacs? It would be convenient when working on multiple projects with separate working directories (and different sets of modules...
Maloriemalory asked 26/11, 2011 at 21:29
3
My goal is to use Emacs 24 as my python editor ( also has a Matlab and R editor but that's not what my question is about ).
(Please let me know if I left out any information or if I did not state ...
Headcheese asked 19/2, 2014 at 12:47
1
I am using Aquamacs on OS X lion and trying to use the latest python-mode.el to edit and run my python code. I can get the ipython shell to open by typing C-!, but if I run either C-c
C-c or C-c |...
Bataan asked 18/11, 2013 at 19:4
2
Solved
I've created a custom key binding macro as follows:
(global-set-key (kbd "C-C C-c") "\C-a\C- \C-n\M-w\C-y")
The problem is that C-c C-c is defined for python-send-buffer in python-mode. So ...
Adrastus asked 11/10, 2013 at 18:11
5
I am using Emacs python-mode. I invoke it using this in my .emacs
(add-to-list 'load-path "~/emacs/python-mode.el-6.0.3/")
(autoload 'python-mode "python-mode" "Python Mode." t)
(add-to-list 'auto...
Nitramine asked 30/1, 2012 at 22:48
1
Solved
I was wondering if there is a way to associate:
n RET (next)
p RET (previous)
c RET (continue)
C-x SPC RET (set/clear breakpoint)
with function keys F1-F12 or other keyboard shortcuts. The idea...
Stent asked 7/2, 2012 at 14:53
3
Solved
I am using emacs 23.1.1 on Ubuntu 10.04. I wish to program in Python with a 2-space indent. emacs looks to have a default mode for python (python.el?).
I put the following in my .emacs:
;; Only ...
Envelop asked 22/11, 2010 at 23:11
1
Solved
I have defined a .dir-locals.el file with the following content:
((python-mode . ((cr/virtualenv-name . "saas"))))
In my .emacs I have the following function to retrieve this value and provide a...
Altdorfer asked 28/2, 2011 at 20:14
1
© 2022 - 2024 — McMap. All rights reserved.