all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Yu Yang <yy2012cn@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: abbrev-mode can't work in python-mode
Date: Mon, 11 Nov 2013 17:09:36 +0800	[thread overview]
Message-ID: <CAHvdkjgM1GV4p8VRDNGy21JuUHe6S1yR9-i+3NHBYHQ81dgi8A@mail.gmail.com> (raw)

I have defined some abbreviations for python mode by using code like this

> (define-abbrev-table 'python-mode-abbrev-table
>   '(
>     ("isettings" "from django.conf import settings")
>     ("irequestcontext" "from django.template import RequestContext")
>     ("imodel" "from django.db import models")
>     ("iform" "from django import forms")
>     ))
>
but it can't work correctly. for example, if I input "isettings" then input
a space, emacs doesn't expand to "from django.conf import settings". I have
tried it with all configuration disabled, but no help.if I change
*python-mode-abbrev-table
*to *sh-mode-abbrev-table*, then in a shell script source file , emacs can
expand the "isettings" correctly. so I think there is something wrong with
pyhon-mode.my emacs version is 24.3. os is linux mint 15. Does Anyone has
similar problem?


             reply	other threads:[~2013-11-11  9:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-11  9:09 Yu Yang [this message]
2013-11-11 15:43 ` abbrev-mode can't work in python-mode Andreas Röhler
     [not found]   ` <CAHvdkjgMhx8EEUnQOU1DMEWM9hFA65g1tCpP-kU+c5XxqbCZug@mail.gmail.com>
2013-11-12  7:15     ` Andreas Röhler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAHvdkjgM1GV4p8VRDNGy21JuUHe6S1yR9-i+3NHBYHQ81dgi8A@mail.gmail.com \
    --to=yy2012cn@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.