[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Automatic Python self completion
From: |
weber |
Subject: |
Re: Automatic Python self completion |
Date: |
Thu, 10 Apr 2008 16:17:41 -0700 (PDT) |
User-agent: |
G2/1.0 |
On Apr 10, 7:06 pm, "Jake Eakle" <jsea...@gmail.com> wrote:
> Hello,
> I'm relatively new to emacs lisping, and I'm wondering how to go about
> adding a but of functionality to python-mode. I want emacs to, whenever I
> type '[tab]def <function name>(', automatically append the text 'self,
> '.Thanks!
>
> Jake Eakle
>
> --
> A warb degombs the brangy. Your gitch zanks and leils the warb.
Instead of giving you a specific solution, I guess you'd benefit more
from installing yasnippet so you can define your own snippets that
expand with tab or whatever.
There are also several snippets for python included.
http://code.google.com/p/yasnippet/
HTH,
Hugo