commit 30d71a09562f820118a0e3c75d05a14bc758d696
parent 724698d6d66454cafcaf23169a9f7dbe76384360
Author: dwrz <dwrz@dwrz.net>
Date: Sat, 2 Sep 2023 13:24:47 +0000
Replace counsel and ivy with ido
Diffstat:
1 file changed, 9 insertions(+), 21 deletions(-)
diff --git a/emacs/init.el b/emacs/init.el
@@ -135,11 +135,6 @@
(with-eval-after-load 'conf-mode (add-hook 'conf-space-mode-hook 'rainbow-mode))
-(with-eval-after-load 'counsel
- (setq counsel-rg-base-command
- "rg -S -M 80 --no-heading --line-number --color never %s ."
- counsel-find-file-at-point t))
-
(with-eval-after-load 'css-mode (add-hook 'css-mode-hook 'web-mode))
(with-eval-after-load 'dired
@@ -204,12 +199,9 @@
go-playground-go-command "GO111MODULE=auto go"
go-playground-init-command "go mod init"))
-(with-eval-after-load 'ivy
- (setq ivy-initial-inputs-alist nil
- ivy-wrap t
- ivy-use-virtual-buffers t
- ivy-count-format "(%d/%d) ")
- (setcdr (assq t ivy-format-functions-alist) #'ivy-format-function-line))
+(with-eval-after-load 'ido
+ (setq ido-enable-flex-matching t)
+ (setq ido-everywhere t))
(with-eval-after-load 'ispell
(setq ispell-program-name "/usr/bin/aspell"
@@ -511,7 +503,7 @@
(global-company-mode t)
(global-hl-line-mode t)
(global-subword-mode t)
-(ivy-mode t)
+(ido-mode t)
(show-paren-mode t)
(size-indication-mode)
@@ -566,8 +558,8 @@
(global-set-key (kbd "C-c b") 'ibuffer)
(global-set-key (kbd "C-c c") 'dwrz-org-capture-at-point)
(global-set-key (kbd "C-c d") nil)
-(global-set-key (kbd "C-c e") 'counsel-M-x)
-(global-set-key (kbd "C-c f") 'counsel-find-file)
+(global-set-key (kbd "C-c e") nil)
+(global-set-key (kbd "C-c f") nil)
(global-set-key (kbd "C-c g") 'avy-goto-line)
(global-set-key (kbd "C-c h") 'hippie-expand)
(global-set-key (kbd "C-c i") nil)
@@ -587,17 +579,13 @@
(global-set-key (kbd "C-c w") 'hydra-windows/body)
(global-set-key (kbd "C-c x") nil)
(global-set-key (kbd "C-c y") nil)
-(global-set-key (kbd "C-c z") 'counsel-fzf)
+(global-set-key (kbd "C-c z") nil)
(global-set-key (kbd "C-c #") 'display-line-numbers-mode)
-(global-set-key (kbd "C-h f") 'counsel-describe-function)
-(global-set-key (kbd "C-h v") 'counsel-describe-variable)
-(global-set-key (kbd "C-r") 'counsel-rg)
+(global-set-key (kbd "C-r") nil)
(global-set-key (kbd "C-s") 'swiper)
(global-set-key (kbd "C-x 9") 'dwrz-split-window-two-thirds)
(global-set-key (kbd "C-x C-b") 'ibuffer)
-(global-set-key (kbd "C-x C-f") 'counsel-find-file)
-(global-set-key (kbd "C-x b") 'ivy-switch-buffer)
+(global-set-key (kbd "C-x C-f") nil)
(global-set-key (kbd "C-x g") 'magit-status)
(global-set-key (kbd "C-x m") 'notmuch)
(global-set-key (kbd "C-x t") 'dwrz-shell-in-current-directory)
-(global-set-key (kbd "M-x") 'counsel-M-x)