From: Tim Johnson <tim@akwebsoft.com>
To: Help-gnu-emacs@gnu.org
Subject: Re: Find bindings for all modes
Date: Thu, 30 Oct 2014 10:25:15 -0800 [thread overview]
Message-ID: <20141030182515.GI7374@mail.akwebsoft.com> (raw)
In-Reply-To: <878ujy71ob.fsf@robertthorpeconsulting.com>
* Robert Thorpe <rt@robertthorpeconsulting.com> [141029 18:23]:
> I'd begin by asking: why do you want terminal mode? The normal purpose
> of terminals these days is SSHing into remote computers. Tim, why do
> you need terminal mode if you don't work in a team environment?
It is a given that I will be using SSH and terminal mode in both
the host and the clients.
> There are advantages to redefining basic keys like C-j, C-l, C-o, etc as
> prefix keys. But, it's tricky, it's not like normal key bindings. Lots
> of Emacs modes assume those keys are unchanged. For example,
> list-buffer binds C-o to Buffer-menu-switch-other-window. If you rebind
> C-o globally and you want Buffer-menu-switch-other-window then you're
> going to have to bind it to something else in buffer menus. The same
> goes for many other modes. If you read through the archives of this
> list you'll see people often get bitten by this. If you've a good bit
> of experience with elisp then that helps. AFAIK Emmanuel Berg, who
> often comments here, has done this.
The current keymaps have been used for years in gui mode. The new
prefixes are : C-j, C-u and C-]. And there *have* been problems
which have been worked out ...
> Tim, have you tried god-mode or evil? They may be more useful for
> dealing with limited hand mobility.
Say what? :) Never heard of them. I will be googling them as soon
as I finish this message. Feel free to elaborate if you have the
time and inclination.
<....>
> Using C-c X type keys is easy. You can do something like:
> (global-set-key (kbd "C-c a") 'previous-buffer)
> Or, you can use local-set-key. See:
> (info "(emacs) Rebinding")
Thanks for the tip on 'info.
I am currently rewriting my binding code so that I can set a
global variable that will enable the C-j, C-l etc binding
OR
C-c j, C-c l etc.
Let way I can compare effects on my hands.
<...>
> Tim's plan to change C-j, C-l, C-o, etc is
> more difficult, almost every mode changes those.
Indeed. You're absolutely correct, although I have already worked
out many of those issues. The tradeoff is that with using
control-C
(see
https://www.gnu.org/software/emacs/manual/html_node/elisp/Key-Binding-Conventions.html
and the following statement
"Don't define C-c letter as a key in Lisp programs. Sequences
consisting of C-c and a letter (either upper or lower case) are
reserved for users; they are the only sequences reserved for
users")
I would have to reach down more with my index finger but I
wouldn't have to worry about collisions and I would have the
potential of shorter sequences with more keymaps.
We've wandered far from the original question, but I have learned
much.
Robert, thanks for your concise explanations and for being so
patient with my unorthodox approach.
regards
--
Tim
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com, http://www.tj49.com
next prev parent reply other threads:[~2014-10-30 18:25 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-28 17:58 Find bindings for all modes Tim Johnson
2014-10-28 21:53 ` John Mastro
2014-10-28 22:00 ` Tim Johnson
2014-10-28 22:18 ` John Mastro
2014-10-29 0:31 ` Tim Johnson
2014-10-29 3:09 ` Robert Thorpe
2014-10-29 18:19 ` Tim Johnson
2014-10-29 23:05 ` John Mastro
2014-10-30 1:46 ` Tim Johnson
2014-10-30 2:04 ` Robert Thorpe
2014-10-30 18:25 ` Tim Johnson [this message]
2014-11-01 21:00 ` Robert Thorpe
2014-11-04 0:04 ` Tim Johnson
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=20141030182515.GI7374@mail.akwebsoft.com \
--to=tim@akwebsoft.com \
--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).