[Top][All Lists]

[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.


reply via email to

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