unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Need help with creating shortcuts
@ 2012-06-24  7:57 C K Kashyap
  2012-06-24 22:14 ` Mark Skilbeck
  0 siblings, 1 reply; 4+ messages in thread
From: C K Kashyap @ 2012-06-24  7:57 UTC (permalink / raw)
  To: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 475 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 632 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread
[parent not found: <mailman.3356.1340524655.855.help-gnu-emacs@gnu.org>]

end of thread, other threads:[~2012-06-25  8:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-24  7:57 Need help with creating shortcuts C K Kashyap
2012-06-24 22:14 ` Mark Skilbeck
2012-06-25  8:31   ` C K Kashyap
     [not found] <mailman.3356.1340524655.855.help-gnu-emacs@gnu.org>
2012-06-24 13:51 ` Pascal J. Bourguignon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).