From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Peter Hodgson Newsgroups: gmane.emacs.help Subject: override a few keymappings in the emacs input-mode "greek-babel;" Date: Fri, 15 May 2020 18:20:08 -0500 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="78160"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat May 16 03:01:01 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jZlCH-000KE0-0W for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 16 May 2020 03:01:01 +0200 Original-Received: from localhost ([::1]:35814 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jZlCG-0005hO-1p for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 15 May 2020 21:01:00 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58212) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jZjdI-0001OL-Ui for help-gnu-emacs@gnu.org; Fri, 15 May 2020 19:20:48 -0400 Original-Received: from mail-lf1-x135.google.com ([2a00:1450:4864:20::135]:41570) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jZjdH-00068w-Tx for help-gnu-emacs@gnu.org; Fri, 15 May 2020 19:20:48 -0400 Original-Received: by mail-lf1-x135.google.com with SMTP id a9so3185442lfb.8 for ; Fri, 15 May 2020 16:20:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=DdDbHK7EIjj+DOGTOnNgm3ZZDFr0hYn7q1B8lJSa2Fs=; b=NS1JCpW3cn98qodrTup+i1fcpglfHKDW9/hE1SYf6hqQzftkibuXxH8367zh5heRz4 SSFQgJgWXDSaLY2iXrfPaTpXcGsllQVokVscLzwRPS9fmwlctX9zIMQUWyE7vkIV3J5l evdktYSdolN/z89qHToTlShOeNIDzSCucM4rD+ntpuY+JOsGQfNjCvYUb8D/842yiXB8 gwyYQ8ZJt8oujrcHoHzqHv4MQdGMUTTRfpQp2NdyB9+QJYtRbGioaw8X3X6hzjphA/L4 /26GXPpUmIEkVjEuk5LUzGzZmBuTpCgLrA+6H1SSshFValaZsUgvbJXTyyvyafo7OBXI LHoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=DdDbHK7EIjj+DOGTOnNgm3ZZDFr0hYn7q1B8lJSa2Fs=; b=LDlyrevnFR3+rZ1uq6hHbA+/n303ryl4yB7Y+/AaRAzjeYD80rQ+s9vYOq4Dzq/mNe jUFhUBUkFugQwAN5NzVORxUahqFvBddJXqxyTleGH8yt77FIdNWlqGvap5nKqNL3/ZDa E8lgkIlADdcexWZ1KHjdMtRpn02qX3m902Ry/+dEGUbaI5DgzsuaL7AL4FAlLkaRbPoZ j4MlPeKPx2Kcop8jWN45qknE1tMv1/L2P1yrFjiTug+DxjqwW/9TsFaUJ01uKXN/mb0j kjobjnKIO5Dk+mXpNyg/NotzkljRpWosW+bCWeFkGuSb6MjKWsgFf6UrDHlz2TRwvmRh SbPA== X-Gm-Message-State: AOAM532n7hoKHBw553po4CqnMKGKiTgukVdMnIkmsPJIKtb+wD2rA2rP VdE7pzNgXwP81HstEO7ekGbDwdgJMuGrVWYdWAaqbeE= X-Google-Smtp-Source: ABdhPJwKwWC9z5lBzQ4AtB0gqwcMM+A8a9gDo5Vt1ERr65htZAHHTkv0Gd3FzKLNGNzDfY2it41AcRgh1cWKWopk4u8= X-Received: by 2002:ac2:44bb:: with SMTP id c27mr3983802lfm.40.1589584844859; Fri, 15 May 2020 16:20:44 -0700 (PDT) Received-SPF: pass client-ip=2a00:1450:4864:20::135; envelope-from=imputerate@gmail.com; helo=mail-lf1-x135.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-Mailman-Approved-At: Fri, 15 May 2020 21:00:21 -0400 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:123094 Archived-At: 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" '=CE=B8) (define-key input-method-greek-babel-map "Q" '=CE=98))) ------------------------- ;;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.htm= l ;;this item, 33.11, suggests methods act like modes https://www.gnu.org/software/emacs/manual/html_node/emacs/Input-Methods.htm= l#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" '=CE=B8) (define-key greek-babel-map "Q" '=CE=98))) ------------------------- --=20 imputerate@puteracy.com