[Top][All Lists]

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

Re: Abbrev , as ,_

From: Jesper Harder
Subject: Re: Abbrev , as ,_
Date: Thu, 30 Oct 2003 02:27:29 +0100
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux)

Jiri Pejchal <> writes:

> When I code in Java or C++ I always type space after ",".
> For example foo(a, f)
>                   ^                
>                   |
> Can Emacs put the space there automatically?
> I tried to make an abbrev for it, but it didn't work for me.

You could do something like this:

(define-key c-mode-map "," (lambda ()
                             (insert ", ")))

reply via email to

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