3 ms·
emacs is actually awesome for Python programming. For easy Python coding, just add the following to your .emacs file: (setq-default tab-width 4) (setq-defa
by kirubakaran 18y ago
emacs is actually awesome for Python programming. For easy Python coding, just add the following to your .emacs file:
(setq-default tab-width 4)
(setq-default indent-tabs-mode nil)
Also get ipython.el -- very handy. My .emacs is here for your reference: http://github.com/ki/my-dot-emacs/blob/master/dot-emacs.txt http://github.com/ki/my-dot-emacs/blob/master/dot-emacs.txt
- twopoint718 18y agoThis was the tutorial shed a lot of light on the issue: http://student.northpark.edu/pemente/emacs_tabs.htm http://student.northpark.edu/pemente/emacs_tabs.htm You get to configure at least three things: how many things emacs enters when you press "tab", what those things are, and if you see a tab in a file how wide it should be.
- wyclif 18y agoAnybody have a good .vimrc file for Python, or thoughts on customizing vim for Python?
- Tekhne 18y agoActually, I think vim comes with pretty good Python support by default. I'm using vim 7.1 and there's, for example, a good python.vim syntax file that came with.
- bobbyi 18y agoUse the indentation script pointed to and explained by this article: http://henry.precheur.org/2008/4/18/Indenting_Python_with_VIM.html http://henry.precheur.org/2008/4/18/Indenting_Python_with_VI... It is better than the default vim python autoindentation behavior.
- Mr_Shark 18y agoYou can find some goodies here: http://blog.sontek.net/2008/05/11/python-with-a-modular-ide-vim/ http://blog.sontek.net/2008/05/11/python-with-a-modular-ide-...