all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Problems with global-set-key
@ 2005-04-22  9:18 JS
  2005-04-22  9:33 ` Peter Dyballa
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: JS @ 2005-04-22  9:18 UTC (permalink / raw)


In my .emacs file I have made this:

(global-set-key "\C-z" 'shell)

And it works fine when I restart emacs.




But when I do this:

(global-set-key "\M-a" 'comment-dwim)

I get this error when I restart:




An error has occurred while loading `/home/johs/.emacs':

Symbol's function definition is void: global-set-key 

To ensure normal operation, you should investigate the cause
of the error in your initialization file and remove it.  Start
Emacs with the `--debug-init' option to view a complete error
backtrace
Loading view...done

------------------------

I have then tried to start emacs like this: emacs --debug-init and then I
get this:

Debugger entered--Lisp error: (void-function global-set-key )
  (global-set-key  "á"   (quote comment-dwim))
  eval-buffer(#<buffer  *load*> nil "~/.emacs" nil t)
  load-with-code-conversion("/home/johs/.emacs" "~/.emacs" t t)
  load("~/.emacs" t t)
  #[nil " …—
----------------------------


Why is it not possible to write the second statement? 

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

end of thread, other threads:[~2005-04-22 13:34 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-22  9:18 Problems with global-set-key JS
2005-04-22  9:33 ` Peter Dyballa
     [not found] ` <mailman.2557.1114162497.2895.help-gnu-emacs@gnu.org>
2005-04-22  9:57   ` JS
2005-04-22 10:54     ` Peter Dyballa
     [not found]     ` <mailman.2582.1114167378.2895.help-gnu-emacs@gnu.org>
2005-04-22 11:07       ` JS
2005-04-22 10:31 ` Tim X
2005-04-22 13:34 ` Barry Margolin

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.