From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Pascal Bourguignon Newsgroups: gmane.emacs.help Subject: Re: emacs for everything? Date: 25 Nov 2004 04:16:23 +0100 Organization: [posted via Easynet Spain] Message-ID: <87fz2yk48o.fsf@thalassa.informatimago.com> References: <87pt2ej98v.fsf@node1.ddorf.de> <87zn1g2t5j.fld@barrow.com> <876540gxzw.fld@barrow.com> <86brdqp4au.fsf@ketchup.de.uu.net> <87d5y3994r.fsf@informatik.uni-freiburg.de> <87hdnfbdek.fsf@lizard.king> <41A499D4.3000400@conectiva.com.br> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1101352868 15310 80.91.229.6 (25 Nov 2004 03:21:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 25 Nov 2004 03:21:08 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Nov 25 04:21:03 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CXABq-0005m4-00 for ; Thu, 25 Nov 2004 04:21:02 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CXAL1-0002Jj-Ot for geh-help-gnu-emacs@m.gmane.org; Wed, 24 Nov 2004 22:30:31 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!syros.belnet.be!news.belnet.be!colt.net!easynet-monga!easynet.net!easynet-post2!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 Original-Lines: 35 Original-NNTP-Posting-Host: 62.93.174.79 Original-X-Trace: DXC=ADWhIBWja9P2YIOC2X^80PEY<>`XO4V7]>Uh List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:22294 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:22294 Maciek Pasternacki 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.