From: Thien-Thi Nguyen <ttn@glug.org>
Subject: Re: defun in global-set-key
Date: 14 Nov 2004 20:11:27 +0100 [thread overview]
Message-ID: <7ey8h4b600.fsf@ada2.unipv.it> (raw)
In-Reply-To: mailman.2652.1100443955.8225.help-gnu-emacs@gnu.org
Rodrigo Canellas <r.canellas@terra.com.br> writes:
> (defun indent-all (interactive) ()
> (mark-whole-buffer)
> (indent-region)
> )
you can also try:
(global-set-key [f2]
(defun indent-all () (interactive)
(indent-region (point-min) (point-max))))
thi
next prev parent reply other threads:[~2004-11-14 19:11 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.2652.1100443955.8225.help-gnu-emacs@gnu.org>
2004-11-14 15:47 ` defun in global-set-key Pascal Bourguignon
2004-11-14 19:11 ` Thien-Thi Nguyen [this message]
2004-11-15 9:10 ` Joakim Hove
2004-11-14 14:40 Rodrigo Canellas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7ey8h4b600.fsf@ada2.unipv.it \
--to=ttn@glug.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).