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



_______________________________________________
Help-gnu-emacs mailing list
Help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs

Reply via email to