[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to change keys for uncomment (C-u C-c C-c)?
From: |
JS |
Subject: |
Re: How to change keys for uncomment (C-u C-c C-c)? |
Date: |
Fri, 22 Apr 2005 10:34:02 +0200 |
User-agent: |
KNode/0.7.7 |
David Hansen wrote:
> On Thu, 21 Apr 2005 22:17:11 +0200 David Hansen wrote:
>
>> (global-set-key "\M-," 'comment-region)
>
> Stupid me... should be
>
> (global-set-key "\M-," 'comment-dwim)
>
> David
I have just entered this in my .emacs fil:
(global-set-key "\M-," 'comment-dwim)
When I start up emacs I get this error:
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 "
- How to change keys for uncomment (C-u C-c C-c)?, JS, 2005/04/21
- Re: How to change keys for uncomment (C-u C-c C-c)?, David Hansen, 2005/04/21
- Re: How to change keys for uncomment (C-u C-c C-c)?, JS, 2005/04/21
- Re: How to change keys for uncomment (C-u C-c C-c)?, David Hansen, 2005/04/21
- Re: How to change keys for uncomment (C-u C-c C-c)?, JS, 2005/04/21
- Re: How to change keys for uncomment (C-u C-c C-c)?, David Hansen, 2005/04/21
- Re: How to change keys for uncomment (C-u C-c C-c)?, JS, 2005/04/21
- Re: How to change keys for uncomment (C-u C-c C-c)?, David Hansen, 2005/04/21
- Re: How to change keys for uncomment (C-u C-c C-c)?, David Hansen, 2005/04/21
- Re: How to change keys for uncomment (C-u C-c C-c)?,
JS <=
- Re: How to change keys for uncomment (C-u C-c C-c)?, Mathias Dahl, 2005/04/22
- Re: How to change keys for uncomment (C-u C-c C-c)?, JS, 2005/04/22
Re: How to change keys for uncomment (C-u C-c C-c)?, Kevin Rodgers, 2005/04/21
Message not available