[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
How to set shortcut for uncomment-region?!?
From: |
Dave Sumsky |
Subject: |
How to set shortcut for uncomment-region?!? |
Date: |
Wed, 8 Jan 2003 15:08:31 GMT |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; cs-CZ; rv:1.2) Gecko/20021203 |
Hi,
I'm using GNU Emacs version 21.2.1 and I have a problem with shortcut
for uncomment-region function in c++-mode, in my .emacs file I have:
;; shorcut for comment region
(global-unset-key "\C-c\C-c")
(global-set-key "\C-c\C-c" 'comment-region)
;; shortcut for uncomment region
(global-unset-key "\C-c\C-u")
(global-set-key "\C-c\C-u" 'uncomment-region)
Now, what is going wrong. Shortcut for comment region is working fine,
but for uncomment region isn't. When I edit a C/C++ source file, I'm in
c++-mode, and then when I try to uncomment a commented region with
shortcut \C-c\C-u,
I receive this message in echo area: No containing preprocessor conditional
So, could you help me with it? Does anybody know how to do correctly
what I want?
Thanks for any suggestions, Dave
- How to set shortcut for uncomment-region?!?,
Dave Sumsky <=
Re: How to set shortcut for uncomment-region?!?, Dave Sumsky, 2003/01/13