help-gnu-emacs
[
Top
][
All Lists
]
Advanced
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
][
Date Index
][
Thread Index
]
conditional text insertion
From
:
Lister Account
Subject
:
conditional text insertion
Date
:
Mon, 18 Jul 2011 22:47:45 -0700
I have a keybinding I just made that essentially will go to the end of a line, insert a semicolon, return, and auto-indent.
I'd like to only add the semicolon if it doesn't already exist.
In other words, go to the end of the line, if a semicolon is there, return. If a semicolon is not there, add one, then return.
I'm brand spanking new to emacs, and I'm sure this is a task that others have resolved, but I'm having trouble googling for a solution.
Thanks,
Steve
reply via email to
[Prev in Thread]
Current Thread
[
Next in Thread
]
conditional text insertion
,
Lister Account
<=
Re: conditional text insertion
,
Deniz Dogan
,
2011/07/19
Re: conditional text insertion
,
Lister Account
,
2011/07/19
Re: conditional text insertion
,
Lister Account
,
2011/07/19
Re: conditional text insertion
,
Memnon Anon
,
2011/07/19
Re: conditional text insertion
,
Lister Account
,
2011/07/19
Re: conditional text insertion
,
Deniz Dogan
,
2011/07/19
Prev by Date:
Re: Searching across line breaks
Next by Date:
Re: conditional text insertion
Previous by thread:
how to set c-set-style at startup?
Next by thread:
Re: conditional text insertion
Index(es):
Date
Thread