|Subject:||RE: Help on indentation|
|Date:||Fri, 30 Mar 2012 12:35:53 +0000|
It’s not at all clear why you needed to do this, since M-( is normally bound to insert-parentheses. (AFAIK, it has been this way for decades.)
Regarding making the ‘(‘ character do this, by convention, it would be an “electric” function, and it’s probably not very hard to write. You might even be happy just binding ‘(‘ to insert-parentheses.
Hope this helps,
Thanks for your help.
I got a hint from `http://www.emacswiki.org/emacs/LineCopyChar'
and I added,
(defun insert-paren-pair (&optional b)
to my .emacs
this won't solve the original problem, but for specific keywords it will suffice.
From: Nash Steve <address@hidden>
insert-parentheses may help.
On Thu, Mar 29, 2012 at 6:58 AM, manish honap <address@hidden> wrote:
I have following query,
whenever I type `(', I want emacs to automatically insert space before it,
just for symbols [if | while | for | switch] during typing;
How it can be done ?
|[Prev in Thread]||Current Thread||[Next in Thread]|