all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Re: How to change keys for uncomment (C-u C-c C-c)?
Date: Thu, 21 Apr 2005 14:32:38 -0600	[thread overview]
Message-ID: <d492cr$j3q$1@sea.gmane.org> (raw)
In-Reply-To: <d48skq$g2$1@news.net.uni-c.dk>

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

  parent reply	other threads:[~2005-04-21 20:32 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-21 15:03 How to change keys for uncomment (C-u C-c C-c)? JS
2005-04-21 15:30 ` David Hansen
2005-04-21 18:45   ` JS
2005-04-21 19:01     ` David Hansen
2005-04-21 19:17       ` JS
2005-04-21 19:26         ` David Hansen
2005-04-21 19:55           ` JS
2005-04-21 20:17             ` David Hansen
2005-04-21 20:35               ` David Hansen
2005-04-22  8:34                 ` JS
2005-04-22 14:48                   ` Mathias Dahl
2005-04-22  8:22               ` JS
2005-04-21 15:58 ` Kevin Rodgers
     [not found] ` <mailman.2427.1114099287.2895.help-gnu-emacs@gnu.org>
2005-04-21 18:51   ` JS
2005-04-21 20:09     ` rgb
2005-04-21 20:32     ` Kevin Rodgers [this message]
2005-04-22 14:53     ` Mathias Dahl
2005-04-22 18:07       ` Alan Mackenzie

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='d492cr$j3q$1@sea.gmane.org' \
    --to=ihs_4664@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.