From 8ade4bac393d4b8160fe01eb478ef44bdf14e60c Mon Sep 17 00:00:00 2001 From: 10sr <8.slashes@gmail.com> Date: Tue, 22 Oct 2019 19:13:09 +0900 Subject: [PATCH] Add some ivy configs --- emacs.el | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/emacs.el b/emacs.el index 0ae3126..5093e74 100644 --- a/emacs.el +++ b/emacs.el @@ -2353,6 +2353,22 @@ Any output will be written to current buffer." (define-key ctl-x-map "R" 'remember) +;; ivy + +(when (require 'counsel nil t) + (defvar ivy-re-builders-alist) + (set-variable 'ivy-re-builders-alist + '((t . ivy--regex-fuzzy))) + ;; (counsel-mode 1) + ;; counsel-fzf executes fzf -f QUERY for each input + ;; (define-key ctl-x-map "f" + ;; (lambda () + ;; (interactive + ;; (let ((process-environment (cl-copy-list process-environment))) + ;; (setenv "FZF_DEFAULT_COMMAND" nil) + ;; (counsel-fzf))))) + ) + ;; Local Variables: ;; flycheck-disabled-checkers: (emacs-lisp-checkdoc) ;; flycheck-checker: emacs-lisp