Earlier quoted context omitted.
sed can do in place recursive changes for search patterns. if you use vim search and replace across a file it's pretty much the same.
I was thinking of something more context aware than a simple find/replace. If you're changing MyClass.getFoo() to MyClass.getBar(), you only want to do that on instances of MyClass.
Emacs setup for Python development
51–56 of 56 posts
Re: Emacs setup for Python development
#52Earlier quoted context omitted.
Vim and Emacs have had decades to get to that point. ST is a comparative baby. I'd love to see a modern editor that isn't designed around a terminal join those ranks.
There is Acme for Plan9 [1] and it has inspired a few other editors. I don't use them myself because they don't have syntax highlighting. [1]: demo at http://www.youtube.com/watch?v=dP1xVpMPn8M
Re: Emacs setup for Python development
#53Earlier quoted context omitted.
Can you give a specific example of how being "fully programmable" improves your workflow?
I can give a few, but I also think it's something that needs to be experienced to really "get it". At work I have to use a proprietary version control and build system (don't ask), and it was relatively easy to hook it into Emacs. We also have an internal website with a cross referenced, hyperlinked version of the code. I have a function to launch a browser and go to the cross reference site for the symbol under the…
I used emacs for 2 years, than switched to Sublime Text 2. All of the shortcuts I use is available via emacs package, and due to it's extensive API, I can add the functionality I want, with python, my favourite language.
Emacs is much more extensible than Sublime Text for sure. On the other hand, Sublime Text's extensibility is enough for my needs.
Re: Emacs setup for Python development
#54Earlier quoted context omitted.
Can you give a specific example of how being "fully programmable" improves your workflow?
I can give a few, but I also think it's something that needs to be experienced to really "get it". At work I have to use a proprietary version control and build system (don't ask), and it was relatively easy to hook it into Emacs. We also have an internal website with a cross referenced, hyperlinked version of the code. I have a function to launch a browser and go to the cross reference site for the symbol under the…
Re: Emacs setup for Python development
#55http://giuliofidente.com/2013/04/getting-to-know-and-use-ema...
In there I tried to address also other issues like saving the backup files out of the working dir, show the line numbers, highlight long lines.
Re: Emacs setup for Python development
#56Can someone link a vim setup for python, for comparison puposes, perhaps with a short feature comparison? I'm currently a vim user with a fairly basic setup (I tried st 2 but couldn't figure it out for managing my work flow) , but I find the idea of emacs attractive.
It has Klen's python-mode plugin as a submodule: https://github.com/klen/python-mode
Python-mode provides awesome sause :) To get the repo, clone it recursively, or you won't have all the submodules. `git clone --recursive https://github.com/srathbun/vim-plugins.git ~/.vim`