all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Emanuel Berg <embe8573@student.uu.se>
To: help-gnu-emacs@gnu.org
Subject: Re: C-<digit> key bindings not working on console
Date: Mon, 27 Jan 2014 17:50:07 +0100	[thread overview]
Message-ID: <874n4p74iv.fsf@nl106-137-194.student.uu.se> (raw)
In-Reply-To: mailman.12925.1390817447.10748.help-gnu-emacs@gnu.org

Thorsten Jolitz <tjolitz@gmail.com> writes:

> One annoying thing is that M-<arrow-keys>
> (i.e. Alt-<arrow-keys>) are at least partly
> (left-arrow, right-arrow) occupied by the system, in
> my case Archlinux, for switching between tty's.

You can change that as well. I think the arrow keys
suck because then you have to move your right hand back
and forth from typing position (not as bad as reaching
for the mouse, but bad enough for me to never use those
keys, just as I never use the function keys or the
numpad) - so I setup Alt/M-j and -l to iterate
consoles, and Alt/M-u to go to X. (Then, in urxvt in X,
I have the same shortcut to go to Emacs in tty1.)
[Really I should say Alt because I run Emacs in tty1,
and in the ttys, including tty1, the "tty global"
keymap keystrokes take precedence.]

If you want to drop the tty use of the arrow keys, find
out what keycodes they are with 'showkey', then set it
all up anew. Here is how I did it, or sort of that,
anyway:

## Linux VTs
# J - Emacs to the leftmost (in tty1)...
alt keycode 36       = Decr_Console
ctrll alt keycode 36 = Decr_Console
# L - ... tmux/zsh to the right (tty2-tty6)
alt keycode 38       = Incr_Console
ctrll alt keycode 38 = Incr_Console
## M-u - X (tty7)
alt keycode 22        = Console_7
ctrll alt keycode 22  = Console_7

The double entries are to make it work with caps. But,
I dropped that key, so perhaps that's redundant for
me. Ah, let's keep it.

> That is convenient, but for an Org-mode user these
> key-combos are much more important inside Org-mode
> than for tty-navigation.

If you are able to drop them in the keymap, they should
work in Emacs without any setup. Try to keycode them to
themselves: keycode 105 = 105 (and ditto 106) - that
might work.

-- 
underground experts united:
http://user.it.uu.se/~embe8573


  parent reply	other threads:[~2014-01-27 16:50 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-23 10:50 C-<digit> key bindings not working on console Thorsten Jolitz
2014-01-23 11:00 ` Thorsten Jolitz
2014-01-23 12:48   ` Tassilo Horn
2014-01-23 13:00     ` Thorsten Jolitz
2014-01-23 13:39       ` Tassilo Horn
2014-01-23 14:17 ` Stefan Monnier
2014-01-23 16:35   ` Thorsten Jolitz
2014-01-23 16:57     ` Stefan Monnier
2014-01-27  9:18       ` Thorsten Jolitz
     [not found]   ` <mailman.12639.1390494920.10748.help-gnu-emacs@gnu.org>
2014-01-23 22:08     ` Emanuel Berg
2014-01-27 10:10       ` Thorsten Jolitz
     [not found]       ` <mailman.12925.1390817447.10748.help-gnu-emacs@gnu.org>
2014-01-27 16:50         ` Emanuel Berg [this message]
     [not found] <mailman.12620.1390474210.10748.help-gnu-emacs@gnu.org>
2014-01-27  8:59 ` Javier
2014-01-27 10:25   ` Thorsten Jolitz

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

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

  git send-email \
    --in-reply-to=874n4p74iv.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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.