Add ivy-posframe
This commit is contained in:
parent
8e40cae497
commit
c8985ddead
1 changed files with 9 additions and 3 deletions
12
oni-ivy.el
12
oni-ivy.el
|
@ -4,8 +4,8 @@
|
||||||
|
|
||||||
;; Author: Tom Willemse <tom@ryuslash.org>
|
;; Author: Tom Willemse <tom@ryuslash.org>
|
||||||
;; Keywords: local
|
;; Keywords: local
|
||||||
;; Version: 20190228220438
|
;; Version: 20190522204855
|
||||||
;; Package-Requires: (ivy ivy-hydra diminish)
|
;; Package-Requires: (ivy ivy-hydra diminish ivy-posframe)
|
||||||
|
|
||||||
;; This program is free software; you can redistribute it and/or modify
|
;; 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
|
;; it under the terms of the GNU General Public License as published by
|
||||||
|
@ -28,6 +28,7 @@
|
||||||
|
|
||||||
(require 'ivy)
|
(require 'ivy)
|
||||||
(require 'ivy-hydra)
|
(require 'ivy-hydra)
|
||||||
|
(require 'ivy-posframe)
|
||||||
|
|
||||||
(defun oni-ivy--disable (orig-fun &rest args)
|
(defun oni-ivy--disable (orig-fun &rest args)
|
||||||
"Disable ivy while running ORIG-FUN with ARGS."
|
"Disable ivy while running ORIG-FUN with ARGS."
|
||||||
|
@ -45,11 +46,16 @@
|
||||||
(add-function :around (symbol-function 'grep-read-files)
|
(add-function :around (symbol-function 'grep-read-files)
|
||||||
#'oni-ivy--disable)))
|
#'oni-ivy--disable)))
|
||||||
|
|
||||||
|
(setq ivy-display-function #'ivy-posframe-display-at-frame-center)
|
||||||
|
|
||||||
(diminish 'ivy-mode)
|
(diminish 'ivy-mode)
|
||||||
|
|
||||||
;;;###autoload(with-eval-after-load 'ivy (require 'oni-ivy))
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(add-hook 'emacs-startup-hook 'ivy-mode)
|
(add-hook 'emacs-startup-hook 'ivy-mode)
|
||||||
|
|
||||||
|
(ivy-posframe-enable)
|
||||||
|
|
||||||
|
;;;###autoload(with-eval-after-load 'ivy (require 'oni-ivy))
|
||||||
|
|
||||||
(provide 'oni-ivy)
|
(provide 'oni-ivy)
|
||||||
;;; oni-ivy.el ends here
|
;;; oni-ivy.el ends here
|
||||||
|
|
Loading…
Reference in a new issue