all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* defun in global-set-key
@ 2004-11-14 14:40 Rodrigo Canellas
  0 siblings, 0 replies; 4+ messages in thread
From: Rodrigo Canellas @ 2004-11-14 14:40 UTC (permalink / raw)


hi,


I defined this in '.emacs' this function:

(defun indent-all (interactive) ()
  (mark-whole-buffer)
  (indent-region)
  )

and associated to a key:

(global-set-key [f2] 'indent-all)


But when I load a file and press F2, the whole buffer is selected, but the 
'indent-region' fails, and a long and uncompreensible message is displayed in 
the mini-buffer. 

Does anyone know what am I doing wrong?

Thanks, 
  Rodrigo 

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-11-15  9:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [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
2004-11-15  9:10 ` Joakim Hove
2004-11-14 14:40 Rodrigo Canellas

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.