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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: emacs for everything?


From: Pascal Bourguignon
Subject: Re: emacs for everything?
Date: 25 Nov 2004 04:16:23 +0100
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

Maciek Pasternacki <maciekp@japhy.fnord.org> writes:

> On Prickle-Prickle, The Aftermath 37, 3170 YOLD, Leonardo Boiko wrote:
> 
> >> I use XKB though to switch my Caps Lock and left Ctrl key (like Sun
> >> keyboards have) -- this one I found in docs. ;) In Emacs it makes
> >> *big* difference.
> >
> > Who needs Caps Lock anyway? Instead of switching, I just bind it as 
> > another Control.  Then, if by reflex I use the old Control, it's still a 
> > Control.
> 
> Caps lock is sometimes useful.  E.G when typing SQL or Lisp code --
> I don't like to have to hold shift when typing keywords (well, maybe
> I could do Emacs tricks like `turn preceding n words to
> uppercase'... well... *click* C-h i g (emacs)...).  While both these
> languages are case-insensitive so I could just use lowercase, I prefer
> to stay consistent wrt style with code written by respective language
> gurus.

There are several solutions for this.

- map Caps Lock to some other key with xmodmap. For example, I map it
  to Scroll Lock which is not useful on X11..

- use caps-mode. You can even activate this minor mode from a hook of
  the major modes that need upcase.  It's even better than a true Caps
  Lock, because you keep typing lower-case, so emacs understands all
  the keys bindings. With Caps Lock, you're typing upper-case and key
  bindings don't match.
  (I found it on news:gnu.emacs.source a few months ago).

-- 
__Pascal Bourguignon__                     http://www.informatimago.com/
The world will now reboot; don't bother saving your artefacts.


reply via email to

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