Commit 2621275c authored by Guilherme Semente's avatar Guilherme Semente 🌱

Replace ido with ivy

parent 836351fd
......@@ -453,63 +453,56 @@ You may find other key bindings inside use-package statements."
(progn
"Browsing files, buffers and running interactive commands"
(use-package ido
:bind (("C-c f" . semente-ido-find-file-as-root))
:config
(ido-mode t)
;; See also ido-completing-read+
;; (ido-everywhere t)
(setq ido-auto-merge-delay-time 4
ido-enable-flex-matching t
ido-max-window-height 1
ido-use-virtual-buffers t
ido-auto-merge-work-directories-length -1 ; experimental, from http://wikemacs.org/wiki/Ido
ido-use-filename-at-point 'guess
ido-create-new-buffer 'always
;; ido-file-extensions-order '(".org" ".txt" ".py" ".emacs" ".xml" ".el"
;; ".ini" ".cfg" ".cnf" ".conf" ".go" ".sh")
ido-ignore-extensions t
ido-ignore-files (append ido-ignore-files '("\\.orig$" "\\.retry$"))
ido-default-file-method 'maybe-frame
ido-default-buffer-method 'maybe-frame))
(use-package smex
:ensure t
:bind (("M-x" . smex)
("M-X" . smex-major-mode-commands)
;; if you want to be able to M-x without meta
("C-x C-m" . smex)
;; default Emacs M-x
("C-c C-c M-x" . execute-extended-command))
:init
(smex-initialize))
(use-package ido-occur
:ensure t
:bind (("C-c o" . ido-occur)
("C-c O" . ido-occur-at-point))
:config
(define-key isearch-mode-map (kbd "C-o") 'ido-occur-from-isearch))
(use-package dired
:defer
:init
(require 'dired-x)
:config
;; The --group-directories-first switch breaks ange-ftp. It is not
;; compatible with "ls" on ftp. Alternatively, you can type C-u s while in
;; a Dired buffer.
(setq dired-listing-switches "-ao --human-readable --group-directories-first")
(setq dired-auto-revert-buffer 'dired-directory-changed-p)
(add-hook 'dired-mode-hook 'hl-line-mode))
(use-package dired-x
:bind (("C-x C-j" . dired-jump)
("C-x 4 C-j" . dired-jump-other-window))
:config
(setq dired-omit-files "^\\.?#\\|^\\.$\\|^\\.\\.$\\|^\\.")))
"Browsing files, buffers and running interactive commands"
(use-package ivy
:ensure t
:diminish ""
:bind (("C-s" . swiper)
("C-r" . swiper-backward))
;; make its keybindings behave similarly to ido and Emacs defaults
:bind (:map ivy-minibuffer-map
("C-m" . ivy-alt-done)
;; ("M-r" . ivy-reverse-i-search)
("M-y" . ivy-next-line) ; to use within `counsel-yank-pop'
("C-s" . ivy-next-line)
("C-r" . ivy-previous-line))
:bind (:map swiper-map
("C-s" . ivy-next-line-or-history)
("C-r" . ivy-previous-line-or-history))
:config
(setq ivy-count-format ""
ivy-height 7
ivy-use-virtual-buffers t
ivy-re-builders-alist '((t . ivy--regex-fuzzy)))
(ivy-mode 1))
(use-package counsel
:ensure t
:diminish ""
:bind (("C-x b" . counsel-switch-buffer))
:bind* (([remap pop-to-mark-command] . counsel-mark-ring))
:config
(counsel-mode 1))
(use-package dired
:defer
:init
(require 'dired-x)
:config
;; The --group-directories-first switch breaks ange-ftp. It is not
;; compatible with "ls" on ftp. Alternatively, you can type C-u s while in
;; a Dired buffer.
(setq dired-listing-switches "-ao --human-readable --group-directories-first")
(setq dired-auto-revert-buffer 'dired-directory-changed-p)
(add-hook 'dired-mode-hook 'hl-line-mode))
(use-package dired-x
:bind (("C-x C-j" . dired-jump)
("C-x 4 C-j" . dired-jump-other-window))
:config
(setq dired-omit-files "^\\.?#\\|^\\.$\\|^\\.\\.$\\|^\\.")))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment