From: Peter Hodgson <imputerate@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: override a few keymappings in the emacs input-mode "greek-babel;"
Date: Fri, 15 May 2020 18:20:08 -0500 [thread overview]
Message-ID: <CA+yawhF_f6z-4+WgZO=bH8MSQURt9W8giJLdxFtfiLMcj2qPSQ@mail.gmail.com> (raw)
i have these add-hook lines, among others, in my .emacs;
;;;it's a matter of overriding default mappings, no?
(add-hook 'org-mode-hook
(lambda ()
(define-key org-mode-map "\eh" nil)))
(add-hook 'org-mode-hook
(lambda ()
(define-key org-mode-map "\ea" nil)))
------------------------------------------
;;here's a model from one of the tutorials-
(add-hook 'texinfo-mode-hook
(lambda ()
(define-key texinfo-mode-map "\C-cp"
'backward-paragraph)
(define-key texinfo-mode-map "\C-cn"
'forward-paragraph)))
;;here's part of my proposed hook for greek-babel
(add hook 'input-method-hook
(lambda ()
(define-key input-method-greek-babel-map "q"
'θ)
(define-key input-method-greek-babel-map "Q"
'Θ)))
-------------------------
;;these are 2 lines of 8 i have in mind, for upper/lower case of 4
characters; in the case of theta, the upper and lower seem very similar;
;;what i am least confident about is `input-mode-greek-babel-map`
;;;partly because i am not sure that `method` can stand in for `mode,`
;;;since i don't have the term "method" in my .emacs file;
https://www.gnu.org/software/emacs/manual/html_node/elisp/Input-Methods.html
;;this item, 33.11, suggests methods act like modes
https://www.gnu.org/software/emacs/manual/html_node/emacs/Input-Methods.html#Input-Methods
;;this item, 22.3, says-
"The simplest kind of input method works by mapping ASCII letters into
another alphabet; this allows you to use one other alphabet instead of
ASCII. The Greek and Russian input methods work this way."
;;these are the only mentions of "method" on a list of 424 hooks
http://ergoemacs.org/emacs/emacs_hooks_list.html
225. input-method-activate-hook
226. input-method-after-insert-chunk-hook
227. input-method-deactivate-hook
228. input-method-inactivate-hook
;;is #225 the one i should start with?
;;;eg.:
(add hook 'input-method-activate-hook
(lambda ()
(define-key greek-babel-map "q"
'θ)
(define-key greek-babel-map "Q"
'Θ)))
-------------------------
--
imputerate@puteracy.com
next reply other threads:[~2020-05-15 23:20 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-15 23:20 Peter Hodgson [this message]
2020-05-16 7:04 ` override a few keymappings in the emacs input-mode "greek-babel; " Eli Zaretskii
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='CA+yawhF_f6z-4+WgZO=bH8MSQURt9W8giJLdxFtfiLMcj2qPSQ@mail.gmail.com' \
--to=imputerate@gmail.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.
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.