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

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

Re: Need help with creating shortcuts


From: Mark Skilbeck
Subject: Re: Need help with creating shortcuts
Date: Sun, 24 Jun 2012 23:14:19 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

Adding to the previous answer, you might then be interested in the
YASnippet extension[1].

[1] https://github.com/capitaomorte/yasnippet#readme

On Sun, Jun 24, 2012 at 01:27:28PM +0530, C K Kashyap wrote:
> Hi All,
> I've been defining functions to create shortcuts
> 
> (defun (hw) (progn
>        (delete-fun) ; This is another function that deletes the actual
> function name from the buffer
>        (insert "Hello World"))
> 
> I invoke it as follows - (hw)C-X-e, this removes (hw) and replaces it with
> Hello World.
> 
> the problem is that I have to type parenthesis. I explored abbreviations
> but they cannot seem to be parameterized. Can someone please suggest an
> alternative?
> 
> Regards,
> Kashyap

-- 
- mgs.

if all you young men / were fish in the water 
how many young girls / would undress and dive after



reply via email to

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