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

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

[Q] How to make a mode dependent operation ?


From: Fren Zeee
Subject: [Q] How to make a mode dependent operation ?
Date: Sat, 4 Dec 2010 11:41:54 -0800 (PST)
User-agent: G2/1.0

Here is a simple newbie problem :

In c-mode, I want to insert a skeleton of function as

 () {


}

and In lisp-mode, I want

( defun ()
""

)

and similarly in scheme, java, python, haskell, pascal ...

What is the quick but maybe not the dirty way to do it ?

What is the PRO way to do it ? I have heard a little about the hooker
hooks :)

What is a hook and what is proper place of use ? Is it appropriate for
this kind of private customization ?



reply via email to

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