From 66216deaacfbfe56d210c3a273ad4e4269898e21 Mon Sep 17 00:00:00 2001 From: 10sr <8.slashes@gmail.com> Date: Thu, 23 Jan 2020 22:43:35 +0900 Subject: [PATCH] Add some ivy configs --- emacs.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/emacs.el b/emacs.el index 8d33808..34f4172 100644 --- a/emacs.el +++ b/emacs.el @@ -2594,6 +2594,8 @@ Any output will be written to current buffer." (concat "| " str)) cands "\n"))))) +(when (fboundp 'ivy-rich-mode) + (ivy-rich-mode 1)) (defun my--ivy-regex-fuzzy-ignore-order (str) "Re-build regex from STR for ignore-order fuzzy match." @@ -2629,6 +2631,8 @@ Any output will be written to current buffer." ;; (setenv "FZF_DEFAULT_COMMAND" nil) ;; (counsel-fzf))))) ) +(when (fboundp 'counsel-switch-buffer) + (define-key ctl-x-map (kbd "C-b") 'counsel-switch-buffer)) (when (and (fboundp 'ivy-read) (locate-library "counsel"))