From f09e1212053dabce12dd7988ae2d3191fadcd945 Mon Sep 17 00:00:00 2001 From: Marc Pohling Date: Thu, 8 Mar 2018 21:36:37 +0100 Subject: [PATCH] fixes in ivy --- config.org | 50 +++++++++++++++++++++++++++++++++++++++----------- 1 file changed, 39 insertions(+), 11 deletions(-) diff --git a/config.org b/config.org index 466e250..25fdc5b 100644 --- a/config.org +++ b/config.org @@ -121,17 +121,6 @@ Also auto refresh dired, but be quiet about it. [[http://whattheemacsd.com/sane- #+end_src -* Recentf -#+begin_src emacs-lisp - (use-package recentf - :bind ("C-x C-r" . helm-recentf) - :config - (recentf-mode t) - (setq recentf-max-saved-items 200) - ) -#+end_src - - * Org Mode ** Installation Although org mode ships with Emacs, the latest version can be installed externally. The configuration here follows the [[http://orgmode.org/elpa.html][Org mode ELPA Installation instructions.]] @@ -239,6 +228,7 @@ I noticed that fontification doesn't work with markdown mode when the block is i #+end_src + * which-key Greatly increases discovery of functions! Click [[https://github.com/justbur/emacs-which-key][here]] for source and more info. @@ -256,9 +246,34 @@ Info in Emacs: M-x customize-group which-key ) #+end_src +* Ido +better completion + +begin_src emacs-lisp + (use-package ido + :init + (setq ido-enable-flex-matching t) + (setq ido-everywhere t) + (ido-mode t) + (use-package ido-vertical-mode + :ensure t + :defer t + :init + (ido-vertical-mode 1) + (setq ido-vertical-define-keys 'C-n-and-C-p-only) + ) + ) +end_src + * ivy / counsel / swiper +Flx is required for fuzzy-matching +Is it really necessary? +#+begin_src emacs-lisp + (use-package flx) +#+end_src + Ivy displays a window with suggestions for hotkeys and M-x #+begin_src emacs-lisp @@ -274,6 +289,8 @@ Ivy displays a window with suggestions for hotkeys and M-x (setq ivy-use-virtual-buffers t) ;; recent files and bookmarks in ivy-switch-buffer (setq ivy-height 20) ;; height of ivy window (setq ivy-count-format "%d/%d") ;; current and total number + (setq ivy-re-builders-alist ;; regex replaces spaces with * + '((t . ivy--regex-plus))) ) #+end_src @@ -311,6 +328,17 @@ Swiper ivy-enhances isearch ) #+end_src +* Recentf +Requires counsel +#+begin_src emacs-lisp + (use-package recentf + :bind ("C-x C-r" . counsel-recentf) + :config + (recentf-mode t) + (setq recentf-max-saved-items 200) + ) +#+end_src + * Programming ** Common things