unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Emanuel Berg <embe8573@student.uu.se>
To: help-gnu-emacs@gnu.org
Subject: Re: Caps Lock affects Ctrl+keys
Date: Tue, 21 Jan 2014 18:38:00 +0100	[thread overview]
Message-ID: <8761pdutf2.fsf@nl106-137-194.student.uu.se> (raw)
In-Reply-To: mailman.12490.1390280831.10748.help-gnu-emacs@gnu.org

Yuri Khan <yuri.v.khan@gmail.com> 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


  parent reply	other threads:[~2014-01-21 17:38 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-20 11:57 Caps Lock affects Ctrl+keys Yuri Khan
2014-01-20 14:47 ` Jude DaShiell
2014-01-20 15:24   ` Yuri Khan
2014-01-20 17:47     ` Jude DaShiell
     [not found]     ` <mailman.12433.1390240051.10748.help-gnu-emacs@gnu.org>
2014-01-20 18:24       ` Emanuel Berg
     [not found]   ` <mailman.12400.1390231499.10748.help-gnu-emacs@gnu.org>
2014-01-20 17:23     ` Emanuel Berg
2014-01-20 18:30       ` Yuri Khan
     [not found]       ` <mailman.12445.1390242632.10748.help-gnu-emacs@gnu.org>
2014-01-20 18:53         ` Emanuel Berg
2014-01-20 20:38 ` Yuri Khan
     [not found] ` <mailman.12458.1390250342.10748.help-gnu-emacs@gnu.org>
2014-01-20 22:55   ` Emanuel Berg
2014-01-21  2:10   ` Emanuel Berg
2014-01-21  5:07     ` Yuri Khan
     [not found]     ` <mailman.12490.1390280831.10748.help-gnu-emacs@gnu.org>
2014-01-21 17:38       ` Emanuel Berg [this message]
2014-01-24 14:38     ` Yuri Khan
2014-01-24 15:56       ` Stefan Monnier
     [not found]     ` <mailman.12684.1390574300.10748.help-gnu-emacs@gnu.org>
2014-01-24 15:22       ` Dan Espen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8761pdutf2.fsf@nl106-137-194.student.uu.se \
    --to=embe8573@student.uu.se \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).