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

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

[elpa] 90/117: Hack to make search-reg work. Should work normally :(


From: Matthew Fidler
Subject: [elpa] 90/117: Hack to make search-reg work. Should work normally :(
Date: Fri, 25 Jul 2014 13:24:30 +0000

mlf176f2 pushed a commit to branch externals/ergoemacs-mode
in repository elpa.

commit 0c394e9380ce2e0d7e1378a2bf15bd0bae2a3be6
Author: Matthew L. Fidler <address@hidden>
Date:   Tue Jul 22 11:09:27 2014 -0500

    Hack to make search-reg work.  Should work normally :(
---
 ergoemacs-themes.el |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/ergoemacs-themes.el b/ergoemacs-themes.el
index 1d6bd6f..e9041d2 100644
--- a/ergoemacs-themes.el
+++ b/ergoemacs-themes.el
@@ -718,8 +718,9 @@
 
 (ergoemacs-theme-component search-reg ()
   "Regular Expression Search/Replace"
-  (global-set-key [remap isearch-forward] 'isearch-forward-regexp)
-  (global-set-key [remap isearch-backward] 'isearch-backward-regexp)
+  (when ergoemacs-mode ;; FIXME should work without when statement
+    (global-set-key [remap isearch-forward] 'isearch-forward-regexp)
+    (global-set-key [remap isearch-backward] 'isearch-backward-regexp))
 
   (global-set-key (kbd "M-%") nil)
   (global-set-key (kbd "M-5") '(vr/query-replace query-replace-regexp))



reply via email to

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