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: Caps Lock affects Ctrl+keys Date: Tue, 21 Jan 2014 18:38:00 +0100 Organization: Aioe.org NNTP Server Message-ID: <8761pdutf2.fsf@nl106-137-194.student.uu.se> References: <87ppnmulrq.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 1390326013 28296 80.91.229.3 (21 Jan 2014 17:40:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 21 Jan 2014 17:40:13 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jan 21 18:40:22 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 1W5fJE-0006mC-Te for geh-help-gnu-emacs@m.gmane.org; Tue, 21 Jan 2014 18:40:21 +0100 Original-Received: from localhost ([::1]:59783 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W5fJE-0003T6-Hc for geh-help-gnu-emacs@m.gmane.org; Tue, 21 Jan 2014 12:40:20 -0500 Original-Path: usenet.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!news.stack.nl!aioe.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 61 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:KDFCocu50PTO2fXEahvHrFmOq84= Mail-Copies-To: never Original-Xref: usenet.stanford.edu gnu.emacs.help:203260 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:95528 Archived-At: Yuri Khan writes: > Nice. I had to > s/last-command-char/last-command-event/ in > github:emacsmirror/caps-mode version, but otherwise > it works and preserves control combinations. It even > works with Cyrillic letters, thanks to the use of > [remap self-insert-command] and (upcase > last-command-event). That's interesting. I wonder if the programmers thought of that of if it is a consequence of good design on multiple parts. > This is a bit clumsy because I have to have different > keys to turn on caps in Emacs and in the rest of my > environment, but will do for a while. That's always the drawback when you solve things that you wish system-wide on the application level. But that's where Emacs is somewhat a special case, because you can do so many things with Emacs, so setting things up in Emacs (not trivial but perhaps not the most difficult thing in the world) can pay off big if one's Emacs use propagates to still new fields of activity. When I setup caps-mode.el, I thought it wouldn't matter otherwhere because I only type otherwise in zsh, and there I wouldn't need uppercased words. But that proved to be incorrect: * The computer world is filled with acronyms: gui, cpu, smtp, dram, mud, mmorpg, irc, ... though I could get used to it, they don't look the same. * Also, while I prefer readme.txt, some old-schoolers say that files intended for humans should look like README instead. * And, not the least, the env vars - HOME, PATH, etc. So I wonder if something like caps-mode.el can be found and setup on the terminal/multiplexer/shell level. I have already rerouted the caps key to produce a goofy Unicode char, which Emacs fetches and evaluates to activating the caps mode, and when I hit that key in tty/tmux/zsh, that char appears (or actually a diamond, as it is U+0111, which apparently is stretching it for the poor driver, or perhaps it isn't even printable) - but anyway it appears, so what's saying I can't do the same dance once again? To do it there (the shell, or on top of whatever) would be feasible, but to do it like 20 times if you use that many applications and cannot solve it at a lower level, then you have to use the caps key a whole lot to make it worth it :) -- underground experts united: http://user.it.uu.se/~embe8573