branch: externals/ergoemacs-mode
commit f14b71e832edc96e5e0596240d8ea683ad336cb1
Author: Matthew Fidler <514778+mattfid...@users.noreply.github.com>
Commit: Matthew Fidler <514778+mattfid...@users.noreply.github.com>

    Remove ergoemacs-mode support for term-mode
---
 ergoemacs-mode.el | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/ergoemacs-mode.el b/ergoemacs-mode.el
index 5eca7f0..da5b38a 100644
--- a/ergoemacs-mode.el
+++ b/ergoemacs-mode.el
@@ -178,9 +178,14 @@ The TEXT will be what the mode-line is set to be."
     (run-hooks 'ergoemacs-pre-command-hook)))
 
 (defvar ergoemacs-post-command-hook nil)
+(defvar ergeoemacs-mode-term-raw-mode nil)
 (defun ergoemacs-post-command-hook ()
   "Run `ergoemacs-mode' post command hooks."
   (when ergoemacs-mode
+    (when (and (eq major-mode 'term-mode)
+               (eq (current-local-map) term-raw-map))
+      (setq-local ergoemacs-mode nil)
+      (setq-local ergeoemacs-mode-term-raw-mode t))
     (run-hooks 'ergoemacs-post-command-hook)))
 
 (defvar ergoemacs-after-load-functions nil)

Reply via email to