help-gnu-emacs
[Top][All Lists]
Advanced

[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: Kevin Rodgers
Subject: Re: How to change keys for uncomment (C-u C-c C-c)?
Date: Thu, 21 Apr 2005 14:32:38 -0600
User-agent: Mozilla Thunderbird 0.9 (X11/20041105)

JS wrote:
> I just wrote this in my .emacs file:
>
> (add-hook 'this-major-mode-hook
>           (lambda ()
>             (local-set-key "\C-cc" 'uncomment-region)))
>
> But when I restart emacs the program is split in two and I get this error:
>
> An error has occurred while loading `/home/johs/.emacs':
>
> Symbol's value as variable is void:

That form would not (in fact, cannot) cause that error.  Either you
mistyped it or there is another error in your .emacs file.

> 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

So why don't you try that?  It will bring up a *Backtrace* buffer
showing the stack of function calls that led to the error.

--
Kevin Rodgers





reply via email to

[Prev in Thread] Current Thread [Next in Thread]