From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dale Snell Newsgroups: gmane.emacs.help Subject: Re: one key-press to comment out lines of code? Date: Wed, 30 Apr 2014 14:12:15 -0700 Organization: Organization? Me? ROFL!! Message-ID: <20140430141215.54197e43@zothique> References: <87fvku94ms.fsf@skimble.plus.com> <87y4ymiqfg.fsf@nl106-137-194.student.uu.se> Reply-To: ddsnell@frontier.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1398892407 23628 80.91.229.3 (30 Apr 2014 21:13:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 30 Apr 2014 21:13:27 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Apr 30 23:13:20 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Wfboc-00025B-LL for geh-help-gnu-emacs@m.gmane.org; Wed, 30 Apr 2014 23:13:18 +0200 Original-Received: from localhost ([::1]:59280 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wfboc-00008R-3c for geh-help-gnu-emacs@m.gmane.org; Wed, 30 Apr 2014 17:13:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55953) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WfboL-000074-Ao for help-gnu-emacs@gnu.org; Wed, 30 Apr 2014 17:13:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WfboF-00034j-BK for help-gnu-emacs@gnu.org; Wed, 30 Apr 2014 17:13:01 -0400 Original-Received: from filter01.dlls.pa.frontiernet.net ([199.224.80.228]:54854) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WfboF-00034d-6Q for help-gnu-emacs@gnu.org; Wed, 30 Apr 2014 17:12:55 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by filter01.dlls.pa.frontiernet.net (Postfix) with ESMTP id 85C4B272CB2 for ; Wed, 30 Apr 2014 21:12:54 +0000 (UTC) Original-Received: from relay02.dlls.pa.frontiernet.net ([199.224.80.245]) by localhost (filter01.dlls.pa.frontiernet.net [199.224.80.228]) (amavisd-new, port 10024) with LMTP id gnRAOMfs0-u4 for ; Wed, 30 Apr 2014 21:12:24 +0000 (UTC) X-Originating-IP: [50.39.121.206] X-Previous-IP: 50.39.121.206 Original-Received: from zothique (50-39-121-206.bvtn.or.frontiernet.net [50.39.121.206]) by relay02.dlls.pa.frontiernet.net (Postfix) with ESMTPA id 5051D4A0E2 for ; Wed, 30 Apr 2014 21:12:18 +0000 (UTC) In-Reply-To: <87y4ymiqfg.fsf@nl106-137-194.student.uu.se> X-Mailer: Claws Mail 3.9.3 (GTK+ 2.24.22; x86_64-redhat-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 199.224.80.228 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:97504 Archived-At: On Wed, 30 Apr 2014 21:10:43 +0200 Emanuel Berg wrote: > Dale Snell writes: > > > Set point and mark to define the region. Then do > > > > C-x r t RET ; SPC RET > > I'm I missing something crucial here? Not really; this is just how I usually do that sort of thing. I first heard of M-; from this mailing list. Alas, when it comes time to (un-)comment a section of code or whatever, I never remember it. :-) The rectangle commands are kinda ingrained into my fingers. > I think it is much better to use C-SPC, then move > point, and then M-;. Meta is very close to the > spacebar, where your left thumb is, and ; is right > below your right little finger. Move the cursor with > the super-ingrained C-e, C-n, etc., which are also > short and close. And it is always the same, not just > for Lisp. On your keyboard, perhaps. Mine's set up a bit differently (the "Windows" keys are the Meta keys, the Alt keys, on either side of the space bar, are the Alt keys.) This makes folding my thumbs a bit awkward. Also, since I often run Emacs in a terminal window, I wind up using the escape key as the Meta prefix. I've been doing that since the '80s (I started with Gosling Emacs on a Pyramid computer), so I'm unlikely to change my ways at this late date. :-) I'm happy with my slightly-less-efficient method. You've got your more-efficient method, and you're obviously happy with it. As has been said, there's more than one way to stack a cat. Happy Emacsing, --Dale -- "If one would give me six lines written by the hand of the most honest man, I would find something in them to have him hanged." -- Cardinal Richelieu