[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Putting == before and after selected text
From: |
Stefan Monnier |
Subject: |
Re: Putting == before and after selected text |
Date: |
Sun, 25 Apr 2010 11:48:36 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
> I would like some key to a command. This is not difficult, but this
> command should, once it is executed on some text, put `==' before the
> text (on the line before) and `==' after the text (on the line after).
> How could I do this?
(define-skeleton my-==-command "Insert == before and after the region"
nil
"--" _ "--")
Then you can call that command with M-x my-==-command RET
You'll probably want to bind it via define-key in some mode.
Stefan