From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Maciek Pasternacki Newsgroups: gmane.emacs.help Subject: Re: emacs for everything? Date: Thu, 25 Nov 2004 14:16:50 +0100 Organization: Towarzystwo Message-ID: <87ekiirrul.fsf@lizard.king> 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> <87fz2yk48o.fsf@thalassa.informatimago.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1101388728 24815 80.91.229.6 (25 Nov 2004 13:18:48 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 25 Nov 2004 13:18:48 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Nov 25 14:18:37 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 1CXJW9-0003OK-00 for ; Thu, 25 Nov 2004 14:18:37 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CXJfL-0003pI-8J for geh-help-gnu-emacs@m.gmane.org; Thu, 25 Nov 2004 08:28:07 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CXJe5-0003SR-Fk for help-gnu-emacs@gnu.org; Thu, 25 Nov 2004 08:26:50 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CXJe4-0003Rj-1E for help-gnu-emacs@gnu.org; Thu, 25 Nov 2004 08:26:48 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CXJe3-0003Rc-R7 for help-gnu-emacs@gnu.org; Thu, 25 Nov 2004 08:26:47 -0500 Original-Received: from [80.91.229.2] (helo=main.gmane.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CXJUa-0001Bh-6U for help-gnu-emacs@gnu.org; Thu, 25 Nov 2004 08:17:00 -0500 Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1CXJUY-0003Y7-00 for ; Thu, 25 Nov 2004 14:16:58 +0100 Original-Received: from leeloo.ds.pg.gda.pl ([153.19.223.131]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 25 Nov 2004 14:16:58 +0100 Original-Received: from maciekp by leeloo.ds.pg.gda.pl with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 25 Nov 2004 14:16:58 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: help-gnu-emacs@gnu.org Original-Lines: 40 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: leeloo.ds.pg.gda.pl X-japhy-version: 21.937 X-Favourite-Drink: Cherry-Coke X-Favourite-Pizza-Place: Anker X-Jabber-Id: maciekp@japhy.fnord.org X-Balcerowicz: Musi odejsc! X-Fnord: xefitra X-Face: "z$0S%vIy|*@uf~&cUy(t.|Ww`"[=wFe(FAC->(lhsd_}0Y\^STZ&LL%W~ikh(=7DBY*>LV )*~d, +@xH3!+USJ8tt"etVnco#l:Yg.'1QEoqEb'aft~ 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:22308 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:22308 On Setting Orange, The Aftermath 38, 3170 YOLD, Pascal Bourguignon wrote: >> 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.. Well, I got caps-lock mapped to what used to be left Ctrl (and vice versa) with xkb option ctrl:swapcaps. It's okay with me; OTOH changing case backwards with M-- [n] M-u seems to be what I was looking for (I knew M-u, M-l and M-c bot never thought of giving it a prefix...). > - 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. It can also be good; I thought also about abbrevs (uppercasing known keywords, especially for SQL) or some kind of electric space for Lisp (though it'd be a bot too automagic for me) but M-- M-u seems to be good way to go. Greets, --japhy -- __ Maciek Pasternacki [ http://japhy.fnord.org/ ] `| _ |_\ / { ...you claimed all this time that you would die for me, ,|{-}|}| }\/ why then are you so surprised when you hear your own eulogy... } \/ |____/ ( M. J. Keenan ) -><-