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

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

Need help with creating shortcuts


From: C K Kashyap
Subject: Need help with creating shortcuts
Date: Sun, 24 Jun 2012 13:27:28 +0530

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

reply via email to

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