[Top][All Lists]

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

[elpa] master 53ca6ed 065/272: ivy.el (ivy-do-completion-in-region): New

From: Oleh Krehel
Subject: [elpa] master 53ca6ed 065/272: ivy.el (ivy-do-completion-in-region): New defcustom
Date: Mon, 25 Apr 2016 10:13:17 +0000

branch: master
commit 53ca6ed21eeba6b811c7e542639f5ad5b5c536d8
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>

    ivy.el (ivy-do-completion-in-region): New defcustom
    Fixes #367
 ivy.el |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/ivy.el b/ivy.el
index 9e4a88e..a5da026 100644
--- a/ivy.el
+++ b/ivy.el
@@ -1457,6 +1457,10 @@ The previous string is between `ivy-completion-beg' and 
                      :require-match t)
+(defcustom ivy-do-completion-in-region t
+  "When non-nil `ivy-mode' will set `completion-in-region-function'."
+  :type 'boolean)
 (define-minor-mode ivy-mode
   "Toggle Ivy mode on or off.
@@ -1476,7 +1480,8 @@ Minibuffer bindings:
   (if ivy-mode
         (setq completing-read-function 'ivy-completing-read)
-        (setq completion-in-region-function 'ivy-completion-in-region))
+        (when ivy-do-completion-in-region
+          (setq completion-in-region-function 'ivy-completion-in-region)))
     (setq completing-read-function 'completing-read-default)
     (setq completion-in-region-function 'completion--in-region)))

reply via email to

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