Live data from Hacker News

Emacs setup for Python development

caisah.info

31–40 of 56 posts

Re: Emacs setup for Python development

#31
post #11
post #10

The Emacs tutorial is a great place to start. Using Emacs is a bit of a paradigm shift in text editing, so you should expect a bit more work up front for great results later on. Going through the tutorial and learning the basic vocabulary and commands takes care of most of that up-front cost and should not take long. I think it took me less than two weeks of fairly casual use. Part of the beauty is that most of the t…

>> For some languages, Emacs is even the only option Which ones would those be? Common Lisp using SLIME?

There's decent Common Lisp support in other editors. Lots of people use Vim with Slimv. Clojure is still supported better (especially now that we have tpope's fireplace.vim), but CL is decent to edit.

Re: Emacs setup for Python development

#32

Can 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.

Conque shell can 'run a terminal' inside of vim, but it's a bit buggy. It's not really fair to compare vim and emacs, because vim is _just_ a text editor. Vim + screen or vim + tmux (my preference) is much closer to the same ... category of thing that emacs is. You can split tmux tabs so that you can have vim up in one pane on a 'tab' and python running in another pane in the same 'tab'. Both tmux and screen have dec…

Tmuxinator especially makes doing the vim + tmux thing so much better because it has nice session support (just type "mux " to bring up a session). I've been using it for about six months now, and my current setup can do anything an IDE can in a fraction of a time.

Re: Emacs setup for Python development

#33
post #11
post #10

The Emacs tutorial is a great place to start. Using Emacs is a bit of a paradigm shift in text editing, so you should expect a bit more work up front for great results later on. Going through the tutorial and learning the basic vocabulary and commands takes care of most of that up-front cost and should not take long. I think it took me less than two weeks of fairly casual use. Part of the beauty is that most of the t…

>> For some languages, Emacs is even the only option Which ones would those be? Common Lisp using SLIME?

I was thinking maybe gp was referring to (at least) elisp.

Re: Emacs setup for Python development

#34

The author seems to imply that sublime does not qualify as a "serious" editor, and offers a link to quora as explanation, but the article there doesn't address what Sublime is missing at all.

>doesn't address what Sublime is missing at all. Being a fully programmable work environment. Edit: I used ST2 for about a month. The Python was neat but it's going to fade away eventually.

Can you give a specific example of how being "fully programmable" improves your workflow?

Re: Emacs setup for Python development

#35
post #32

Earlier quoted context omitted.

Conque shell can 'run a terminal' inside of vim, but it's a bit buggy. It's not really fair to compare vim and emacs, because vim is _just_ a text editor. Vim + screen or vim + tmux (my preference) is much closer to the same ... category of thing that emacs is. You can split tmux tabs so that you can have vim up in one pane on a 'tab' and python running in another pane in the same 'tab'. Both tmux and screen have dec…

Tmuxinator especially makes doing the vim + tmux thing so much better because it has nice session support (just type "mux " to bring up a session). I've been using it for about six months now, and my current setup can do anything an IDE can in a fraction of a time.

What do you use for automatic refactoring? Are there good command line tools for renaming methods across an entire source tree for example?

Re: Emacs setup for Python development

#37

Earlier quoted context omitted.

>doesn't address what Sublime is missing at all. Being a fully programmable work environment. Edit: I used ST2 for about a month. The Python was neat but it's going to fade away eventually.

What can't you do with ST2 if you write a plugin? Or is that just a relative pain compared to emacs & vim?

Friction + capability + turtles all the way down.

Re: Emacs setup for Python development

#38
post #32

Earlier quoted context omitted.

Tmuxinator especially makes doing the vim + tmux thing so much better because it has nice session support (just type "mux " to bring up a session). I've been using it for about six months now, and my current setup can do anything an IDE can in a fraction of a time.

What do you use for automatic refactoring? Are there good command line tools for renaming methods across an entire source tree for example?

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.

Re: Emacs setup for Python development

#39
post #11
post #10

The Emacs tutorial is a great place to start. Using Emacs is a bit of a paradigm shift in text editing, so you should expect a bit more work up front for great results later on. Going through the tutorial and learning the basic vocabulary and commands takes care of most of that up-front cost and should not take long. I think it took me less than two weeks of fairly casual use. Part of the beauty is that most of the t…

>> For some languages, Emacs is even the only option Which ones would those be? Common Lisp using SLIME?

Not really a programming mode.

But OrgMode is probably one of the most powerful and unique emacs modes. There is nothing like it anywhere else.

Once you go OrgMode, there is no going back.

Re: Emacs setup for Python development

#40
post #11
post #10

The Emacs tutorial is a great place to start. Using Emacs is a bit of a paradigm shift in text editing, so you should expect a bit more work up front for great results later on. Going through the tutorial and learning the basic vocabulary and commands takes care of most of that up-front cost and should not take long. I think it took me less than two weeks of fairly casual use. Part of the beauty is that most of the t…

>> For some languages, Emacs is even the only option Which ones would those be? Common Lisp using SLIME?

Emacs Lisp
Post reply on HN