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

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

Re: [Q] How to make a mode dependent operation ?


From: Joost Kremers
Subject: Re: [Q] How to make a mode dependent operation ?
Date: 4 Dec 2010 20:10:13 GMT
User-agent: slrn/0.9.9p1 (Linux)

[Followup-To: header set to comp.emacs]
Fren Zeee wrote:
> 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 ?

look at yasnippet for one way of doing this.

btw, this is an emacs question, there's really no need to x-post in
comp.lang.lisp or comp.unix.shell.


-- 
Joost Kremers                                      joostkremers@yahoo.com
Selbst in die Unterwelt dringt durch Spalten Licht
EN:SiS(9)


reply via email to

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