[Top][All Lists]

[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: Mathias Dahl
Subject: Re: How to change keys for uncomment (C-u C-c C-c)?
Date: Fri, 22 Apr 2005 16:53:56 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (windows-nt)

JS <address@hidden> writes:

> 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:           

I don't know about you other guys, but something seems fishy with JS'
.emacs file. When I read the post above, each supposed-to-be space
character has a magenta coloured backlshash in front of it, suggestion
some special or control-character.

I won't paste his text here again (it is above), but if you do not see
what I see, this is how it looks (drawn in normal ascii):

  (add-hook 'this-major-mode-hook
  \ \ \ \ \ \ \ \ \ \ (lambda\ ()
  \ \ \ \ \ \ \ \ \ \ \ \ (local-set-key\ "\C-cc"\ 'uncomment-region)))

When I put the cursor on one of those and used C-x =, this is what I

Char: \  (04240, 2208, 0x8a0, file 0xA0) point=961 of 1442 (67%) column 0 

Note: I had to use normal ascii to be sure that the "backslash-space"
char above was displayed correctly. It is indeed only one character.

Anyway, just a thought.


reply via email to

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