emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/ergoemacs-mode 8b437ad 70/87: Merge pull request #500 f


From: Stefan Monnier
Subject: [elpa] externals/ergoemacs-mode 8b437ad 70/87: Merge pull request #500 from wlandry/term_fixes
Date: Wed, 14 Apr 2021 18:47:10 -0400 (EDT)

branch: externals/ergoemacs-mode
commit 8b437adbd7f3e7794b2fdd6ec08b14a9184b8b07
Merge: 26c2150 c7907aa
Author: Matthew Fidler <matthew.fidler@gmail.com>
Commit: GitHub <noreply@github.com>

    Merge pull request #500 from wlandry/term_fixes
    
    In term-mode, modify both term-raw-map and current-local-map
---
 ergoemacs-map.el | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/ergoemacs-map.el b/ergoemacs-map.el
index 1e758cd..8702952 100644
--- a/ergoemacs-map.el
+++ b/ergoemacs-map.el
@@ -1020,7 +1020,16 @@ When INI is non-nil, add conditional maps to 
`minor-mode-map-alist'."
         (setq ergoemacs-map--breadcrumb (format "%s" major-mode))
         (when (eq major-mode 'ess-mode)
           (setq ergoemacs-map--breadcrumb (format "ess-mode-%s" ess-language)))
-        (use-local-map (ergoemacs current-local-map))
+         ;; term-mode has a term-raw-map that it checks against
+         ;; current-local-map to see if it is in line-mode or
+         ;; char-mode.  So we have to modify both term-raw-map and
+         ;; current-local-map to be able to switch.
+         (if (not (eq major-mode 'term-mode))
+            (use-local-map (ergoemacs current-local-map))
+           (progn
+             (setq term-raw-map (ergoemacs term-raw-map))
+             (use-local-map term-raw-map))
+           )
         (setq ergoemacs-map--breadcrumb ""))
        (when (and (minibufferp) ergoemacs-read-from-minibuffer-map)
          ;; Preserve bindings for space, such as when completing a filename



reply via email to

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