feat(all): Replace helm with ivy

For most of my use-cases Helm seems to be overkill, and despite
overall seeming like a nice and featureful package it has stability
issues and bugs that annoy me.

I've heard that ivy is simpler to use and configure, so I'm giving it
a chance here.
This commit is contained in:
Vincent Ambo 2018-05-01 16:01:38 +02:00
parent eaac33465d
commit 72a33b9156
4 changed files with 12 additions and 20 deletions

View file

@ -57,7 +57,7 @@
;; Open a file in project:
(global-set-key (kbd "C-c f") 'project-find-file)
;; Interactively filter lines in current buffer:
(global-set-key (kbd "C-c o") 'helm-occur)
;; Use swiper instead of isearch
(global-set-key "\C-s" 'swiper)
(provide 'bindings)

View file

@ -14,8 +14,6 @@
'(elnode-send-file-program "/run/current-system/sw/bin/cat")
'(frame-brackground-mode (quote dark))
'(global-auto-complete-mode t)
'(helm-split-window-in-side-p t)
'(helm-split-window-inside-p t)
'(kubernetes-commands-display-buffer-function (quote display-buffer))
'(magit-log-show-gpg-status t)
'(ns-alternate-modifier (quote none))

View file

@ -66,7 +66,7 @@
;; Launch applications with completion (dmenu style!)
(exwm-input-set-key (kbd "s-d") #'helm-run-external-command)
(exwm-input-set-key (kbd "s-p") #'helm-pass)
(exwm-input-set-key (kbd "s-p") #'ivy-pass)
;; Toggle between line-mode / char-mode
(exwm-input-set-key (kbd "C-c C-t C-t") #'exwm-input-toggle-keyboard)

View file

@ -1,21 +1,15 @@
(require 'uniquify)
;; Make Helm go!
(require 'helm-config)
;; Make ivy go!
(ivy-mode 1)
(counsel-mode 1)
;; Enable fuzzy matching in Helm.
;; The wiki recommends the first two options for globally enabling fuzzy
;; matching, however this does not actually work.
;; Setting all the options helps!
(setq helm-mode-fuzzy-match t
helm-completion-in-region-fuzzy-match t
helm-M-x-fuzzy-match t
helm-buffers-fuzzy-matching t
)
(global-set-key (kbd "M-x") #'helm-M-x)
(global-set-key (kbd "C-x r b") #'helm-filtered-bookmarks)
(global-set-key (kbd "C-x C-f") #'helm-find-files)
(helm-mode 1)
(setq ivy-use-virtual-buffers t)
(setq enable-recursive-minibuffers t)
;; Enable fuzzy matching in ivy (requires flx installed for sane
;; ordering)
(setq ivy-re-builders-alist '((t . ivy--regex-fuzzy)))
;; Move files to trash when deleting
(setq delete-by-moving-to-trash t)