From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Emanuel Berg Newsgroups: gmane.emacs.help Subject: Re: one key-press to comment out lines of code? Date: Fri, 02 May 2014 01:42:23 +0200 Organization: Aioe.org NNTP Server Message-ID: <87k3a5ukv4.fsf@nl106-137-194.student.uu.se> References: <87fvku94ms.fsf@skimble.plus.com> <87y4ymiqfg.fsf@nl106-137-194.student.uu.se> <87a9b1iogu.fsf@nl106-137-194.student.uu.se> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1398987924 13389 80.91.229.3 (1 May 2014 23:45:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 1 May 2014 23:45:24 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri May 02 01:45:19 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 1Wg0fG-0004tx-EG for geh-help-gnu-emacs@m.gmane.org; Fri, 02 May 2014 01:45:18 +0200 Original-Received: from localhost ([::1]:41780 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wg0fF-0000yi-VI for geh-help-gnu-emacs@m.gmane.org; Thu, 01 May 2014 19:45:17 -0400 Original-Path: usenet.stanford.edu!goblin2!goblin.stu.neva.ru!aioe.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 89 Original-NNTP-Posting-Host: VVbyYd/iFZoeWNmD9i++cQ.user.speranza.aioe.org Original-X-Complaints-To: abuse@aioe.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-Notice: Filtered by postfilter v. 0.8.2 Cancel-Lock: sha1:K2EY05czJGO+uLfUmkOobuSnRI0= Mail-Copies-To: never Original-Xref: usenet.stanford.edu gnu.emacs.help:205263 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:97530 Archived-At: Dale Snell writes: > Heh, yeah, the old terminals had keys wandering all > over the place. Every manufacturer had a different > idea of where things like escape, |, \, `, ~, and so > on belonged. Sometimes they would change their minds > from one model to the next. As I recall, the DEC > VT-101 that I learned Emacs on had the escape key > where the /~ usually is now. The `/~ key was between > the =/+ and backspace keys, and the |/\ key was to > the right of the return key. (An awful place. One > had to be careful if one used those characters.) Cool. I found the old exchange: YT: ... was the Escape key placed anywhere else than it is on today's keyboards? The reason I ask is - well, just try hitting a couple of familiar shortcuts, but instead of Meta, use Escape. I think it would take a master at the accordion to be productive using that. Bob Proulx: Yes. The escape key has been located in other locations. Here is an example. On the HP HIL keyboard it was left of the left shift key. (Also note that control was left of the A.) A good keyboard layout for the touch typist. Everything was relatively close to the home row. http://www.hpmuseum.net/display_item.php?hw=575 Mostly escape has been located in the upper left "somewhere". Although not always left of the 1 key. >> But perhaps you re-routed Esc for Caps Lock? > > No, I swapped control for caps-lock, putting the > control key next to the A key, where it's much more > accessible. Yeah, I've heard a lot of people doing that. I actually think left control is kind of close and good for the left little finger. Caps-lock is better, yes, but is it better enough to make it worthwhile to re-learn? Don't know. > Since I seldom use the caps-lock function, it doesn't > bother me that said key was relegated to the second > most inconvenient place on the keyboard. I have an Emacs-only software solution for upper-case only mode (which I get with ). It is based on caps-mode.el but I put some changes there, namely it maps dashes to underscores, and, it disables itself on a non-alphanumeric (or dash/underscore) keystroke (i.e., most often a whitespace). It works great in Emacs but I wish I could get it in zsh as well. There is still the acronyms (e.g., URL), and even more so the non-computer files (README) and environmentals (HOME), and I'd like a caps-lock for that. Instead I bring up the buffer-menu (files only) on the caps-lock key (only) in Emacs, and once there, an additional stroke of caps-lock brings up all files. So I can toggle all I want. Pretty clever! But there should be one million things to do with the caps-lock key that is more sensible than changing the case... > (The most inconvenient position, imnsho, is the right > control key. Next to the left arrow key. Ugh.) Agreed. I actually don't have it. To the right of the space bar, I have "Alt Graph" (which is Meta as well, it seems), then a key with a solid diamond (seems to be escape), and then "Compose Key" which doesn't seem to do anything. (I actually have the compose key somewhere else.) But: why are those keys so inconvenient? What's stopping from using them as the control and Meta on the left side? They are just one centimeter too far to the right and that does it. -- underground experts united: http://user.it.uu.se/~embe8573