RE: How can in I define a keystroke in Xemacs

David Pullara <[email protected]>
Newsgroups gmane.emacs.xemacs.general
Message-ID <[email protected]>
I'm not sure if xemacs-news was the right place to post this;
someone correct me if I'm wrong.

You can put this in your init.el file:

(global-set-key [(control c) (meta a)] 'append-to-file)

so that you can use C-c M-a to do append-to-file.
I tried using "meta x" as you wanted but XEmacs
doesn't like it.  Maybe there's a restriction to binding
keys to it, or maybe I'm not doing it correctly.

Hopefully someone will reply if there's a better way than
what I described.


WRT your "copy-to-file" question, maybe "write-region" is
what you're looking for?  ( "C-h a region" would have found
that command for you.)


hth
d

-----Original Message-----
From: Alexander Beck-Ratzka [mailto:[email protected]]
Sent: Thursday, January 15, 2004 9:09 AM
To: [email protected]
Subject: How can in I define a keystroke in Xemacs

Hello Xemacs users,

I want to define a keystroke with the command

M-x
append-to-file

This commands appends a marked region a file.

E.g., this should be the keystroke

M-x M-a

How can I achieve this??

Another question. Is there any command available like (let me say)
copy-to-file, which copies (instead of appending) a markes region to a
file?

Thank you for the help!!

Alexander
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.