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))