Skip to content

Commit

Permalink
more ivy, less ido
Browse files Browse the repository at this point in the history
  • Loading branch information
Chen Bin committed Feb 28, 2017
1 parent 5307485 commit 28eea41
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lisp/init-ido.el
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
;; Use C-f during file selection to switch to regular find-file
(require 'flx-ido)
(ido-mode t) ; use 'buffer rather than t to use only buffer switching
(ido-mode 'file) ; use 'buffer rather than t to use only buffer switching
(flx-ido-mode 1)
;; disable ido faces to see flx highlights.
(setq ido-enable-flex-matching t)
Expand Down
5 changes: 5 additions & 0 deletions lisp/init-ivy.el
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
(ivy-mode 1)
(setq ivy-use-virtual-buffers t)
(global-set-key (kbd "C-c C-r") 'ivy-resume)
(define-key read-expression-map (kbd "C-r") 'counsel-expression-history)

;; {{ @see http://oremacs.com/2015/04/19/git-grep-ivy/
(defun counsel-escape (keyword)
(setq keyword (replace-regexp-in-string "\"" "\\\\\"" keyword))
Expand Down

0 comments on commit 28eea41

Please sign in to comment.