summary refs log tree commit diff
diff options
context:
space:
mode:
authorFranck Cuny <franckcuny@gmail.com>2016-10-31 17:39:37 -0700
committerFranck Cuny <franckcuny@gmail.com>2016-10-31 17:39:37 -0700
commitf0dda6213b2120eb6ceca4fa72030f4a1ef10503 (patch)
tree74ca8098f3014e53718515f3c85b880d0d992c26
parentConverted README from markdown to org-mode. (diff)
downloadpants.el-f0dda6213b2120eb6ceca4fa72030f4a1ef10503.tar.gz
Use 'ivy' instead of 'helm'.
ivy[1] is lighter than helm and has a nicer API.

[1] http://oremacs.com/swiper/
-rw-r--r--pants.el13
1 files changed, 4 insertions, 9 deletions
diff --git a/pants.el b/pants.el
index ac98da8..75606ec 100644
--- a/pants.el
+++ b/pants.el
@@ -1,10 +1,10 @@
 ;;; pants.el --- A frontend for pants.
 
-;; Package-Requires: ((helm "1.5.3"))
+;; Package-Requires: ((ivy "0.8.0"))
 
 ;;; Code:
 (require 'compile)
-(require 'helm)
+(require 'ivy)
 (require 'python)
 
 (defcustom pants-source-tree-root nil
@@ -104,13 +104,8 @@
       (while (re-search-forward "^\\(.+\\)$" nil t)
         (setq target (match-string 1))
         (push target targets)))
-    (helm
-     (helm :sources
-           `((name . "Pants Targets")
-             (candidates . ,targets)
-             (action . action))
-           :buffer "*helm pants targets*"
-           :prompt "pants: "))))
+    (ivy-read "Pants Targets" targets
+              :action (lambda (target) (funcall action target)))))
 
 (defun pants--get-build-file-for-current-buffer ()
   "Finds the nearest build file for the current buffer"