help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: abbrev mode not working


From: Andreas Röhler
Subject: Re: abbrev mode not working
Date: Mon, 21 Apr 2014 10:34:57 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.2.0

Am 20.04.2014 15:39, schrieb Florian Lindner:
Am Samstag, 19. April 2014, 09:40:08 schrieb Andreas Röhler:
Am 16.04.2014 10:18, schrieb Florian Lindner:
Hello,

on emacs 24.3.1 I have trouble using the abbrev mode.

emacs -Q
M-x python-mode
M-x abbrev-mode

This toggles abbrev-mode.
If abbrev-mode was on by init, it's now off.

That's why I invoked emacs using -Q.

What does the status bare tell WRT abbrev-mode?

i enabled abbrev-mode, Abbrev is shown in the status bar.

typing "pdb", nothing happens.

Just typing an abbrev does nothing. Needs <space> to expand, for example.

Sure.

Though my ~/.emacs.d/abbrev_defs contains:

;;-*-coding: utf-8;-*-

(define-abbrev-table 'python-mode-abbrev-table
    '(
      ("pdb" "pdb.set_trace()" nil 0)
     ))

Does this solve it already?

Sorry, no.

Thanks!
Florian



Using abbrevs heavily with python-mode.el, you may give it a try.

https://launchpad.net/python-mode

As it doesn't unload python.el, it's a little bit strange seeing abbrevs 
working that way, but so it is.
BTW you should be able to run the python.el commands used to while
expanding python-mode.el based abbrevs.

Cheers,

Andreas



reply via email to

[Prev in Thread] Current Thread [Next in Thread]