[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

override a few keymappings in the emacs input-mode "greek-babel;"

From: Peter Hodgson
Subject: override a few keymappings in the emacs input-mode "greek-babel;"
Date: Fri, 15 May 2020 18:20:08 -0500

  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"
                 (define-key texinfo-mode-map "\C-cn"

 ;;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;
  ;;this item, 33.11, suggests methods act like modes
  ;;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
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?

(add hook 'input-method-activate-hook
               (lambda ()
                 (define-key greek-babel-map "q"
                 (define-key greek-babel-map "Q"


reply via email to

[Prev in Thread] Current Thread [Next in Thread]