aboutsummaryrefslogtreecommitdiffstats
path: root/oni-ivy.el
diff options
context:
space:
mode:
authorGravatar Tom Willemse2019-05-22 20:49:31 -0700
committerGravatar Tom Willemse2019-05-22 21:03:46 -0700
commitc8985ddead5b4efd096bb88faa56804ff856945d (patch)
tree09f94fe6c24f2e8f52ce13c85a3d5511e3ab5dd8 /oni-ivy.el
parent8e40cae4970bd0962c854090acd14c289adb67ab (diff)
downloademacs-config-c8985ddead5b4efd096bb88faa56804ff856945d.tar.gz
emacs-config-c8985ddead5b4efd096bb88faa56804ff856945d.zip
Add ivy-posframe
Diffstat (limited to 'oni-ivy.el')
-rw-r--r--oni-ivy.el12
1 files changed, 9 insertions, 3 deletions
diff --git a/oni-ivy.el b/oni-ivy.el
index dd25275..16eaa39 100644
--- a/oni-ivy.el
+++ b/oni-ivy.el
@@ -4,8 +4,8 @@
;; Author: Tom Willemse <tom@ryuslash.org>
;; Keywords: local
-;; Version: 20190228220438
-;; Package-Requires: (ivy ivy-hydra diminish)
+;; Version: 20190522204855
+;; Package-Requires: (ivy ivy-hydra diminish ivy-posframe)
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
@@ -28,6 +28,7 @@
(require 'ivy)
(require 'ivy-hydra)
+(require 'ivy-posframe)
(defun oni-ivy--disable (orig-fun &rest args)
"Disable ivy while running ORIG-FUN with ARGS."
@@ -45,11 +46,16 @@
(add-function :around (symbol-function 'grep-read-files)
#'oni-ivy--disable)))
+(setq ivy-display-function #'ivy-posframe-display-at-frame-center)
+
(diminish 'ivy-mode)
-;;;###autoload(with-eval-after-load 'ivy (require 'oni-ivy))
;;;###autoload
(add-hook 'emacs-startup-hook 'ivy-mode)
+(ivy-posframe-enable)
+
+;;;###autoload(with-eval-after-load 'ivy (require 'oni-ivy))
+
(provide 'oni-ivy)
;;; oni-ivy.el ends here