From 76e68d3a6a85f7ad401fdbc02e15e18e713d4935 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Wed, 20 Jan 2016 21:38:08 -0500 Subject: [PATCH] Add counsel config, replaces/extends smex --- .emacs.d/init.el | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 76797cd..43cbb7b 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -97,10 +97,18 @@ '(define-key isearch-mode-map (kbd "C-'") 'avy-isearch)) :bind ("C-;" . avy-goto-char) :bind ("C-'" . avy-goto-char-2)) + (use-package smex :quelpa - :bind ("M-x" . smex) - :bind ("M-X" . smex-major-mode-commands) - :config (global-set-key (kbd "C-c C-c M-x") 'execute-extended-command)) ;;normal M-x. + :bind ("M-X" . smex-major-mode-commands)) + +(use-package counsel :quelpa + :config + (setq ivy-re-builders-alist + '((counsel-M-x . ivy--regex-fuzzy) + (t . ivy--regex-plus))) + (assq-delete-all 'counsel-M-x ivy-initial-inputs-alist) + (global-set-key (kbd "C-c C-c M-x") 'execute-extended-command) ;;normal M-x. + :bind ("M-x" . counsel-M-x)) (use-package ace-window :quelpa :bind ("M-p" . ace-window))