help-gnu-emacs
[Top][All Lists]
Advanced

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

space before '('


From: Rodrigo Canellas
Subject: space before '('
Date: Thu, 22 Jan 2009 16:58:43 -0200
User-agent: KMail/1.10.3 (Linux/2.6.27-9-generic; KDE/4.1.3; i686; ; )

Hi,

You guys tought me to make 'emacs' automatically insert a space after a '(' or 
a ')' like this:


(defun c-mode-meat ()
  (dolist 
      (key 
       (list 
        (kbd ")")
        (kbd "(")        
        )
       )
    (local-set-key key 'self-insert-and-space-command)
    )
  )

Is it possible to make 'emacs' insert a space before the '(' or ')' just 
typed?

Thanks a lot!

-- 
Rodrigo Canellas
Software Developer
Digital TV Products
+55 21 3147-3000/8675
rodrigo.canellas@tqtvd.com
www.tqtvd.com 
TQTVD Software

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.





reply via email to

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