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: C K Kashyap
Subject: Re: Need help with creating shortcuts
Date: Mon, 25 Jun 2012 14:01:06 +0530

Thank you Mark,

I think, this will do.

Regards,
Kashyap

On Mon, Jun 25, 2012 at 3:44 AM, Mark Skilbeck <m@iammark.us> wrote:
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]