switch to helm from ivy and counsel

This commit is contained in:
Łukasz Pankowski 2017-11-16 03:03:34 +01:00
parent f65ce48057
commit 78cc8d21fc

51
init.el
View File

@ -74,25 +74,34 @@
;;; Use more efficient buffer/file selection ;;; Use more efficient buffer/file selection
(use-package counsel (use-package helm
:ensure nil :ensure nil
:init :init
(setq ivy-use-virtual-buffers t (setq helm-split-window-default-side 'other)
ivy-magic-tilde nil) (helm-mode 1)
(recentf-mode 1)
:bind :bind
(("C-c r" . ivy-resume) (("M-x" . helm-M-x)
("C-c i" . counsel-imenu) ("M-y" . helm-show-kill-ring)
("C-c g" . counsel-git) ("C-x C-f" . helm-find-files)
("C-c j" . counsel-git-grep) ("C-s" . helm-occur)
("C-c L" . counsel-locate) ("C-x b" . helm-mini)
("M-x" . counsel-M-x) ("C-x r b" . helm-bookmarks)
("C-x C-f" . counsel-find-file) ("C-h a" . helm-apropos)
("C-x b" . ivy-switch-buffer) ("C-h d" . helm-info-at-point)
("C-s" . swiper)) ("C-c L" . helm-locate)
:config ("C-c r" . helm-resume)
(ivy-mode 1) ("C-c i" . helm-imenu)))
(counsel-mode 1))
(use-package helm-git-grep
:ensure nil
:bind
(("C-c j" . helm-git-grep)
("C-c J" . helm-git-grep-at-point)))
(use-package helm-ls-git
:ensure nil
:bind
(("C-c g" . helm-ls-git-ls)))
;;; Use more more efficient changing windows ;;; Use more more efficient changing windows
@ -112,11 +121,12 @@
:config :config
(windmove-default-keybindings)) (windmove-default-keybindings))
(use-package spaces (use-package helm-spaces
:ensure nil :ensure nil
;; customize mode-line-format to add: "(" sp-current-space ")" ;; customize mode-line-format to add: "(" sp-current-space ")"
;; or in powerline theme add: (powerline-raw (if (and (boundp 'sp-current-space) sp-current-space) (concat " (" sp-current-space ")") "") face2)
:bind :bind
("C-c b" . sp-switch-space)) ("C-c b" . helm-spaces))
;;; Allow for Undo/Redo of window manipulations (such as C-x 1) ;;; Allow for Undo/Redo of window manipulations (such as C-x 1)
@ -254,7 +264,10 @@ Argument FRAMES has the same meaning as for `set-frame-font'"
(global-set-key "\C-ck" 'compile) (global-set-key "\C-ck" 'compile)
(global-set-key "\C-cq" 'bury-buffer) (global-set-key "\C-cq" 'bury-buffer)
(global-set-key "\C-cs" 'shell)
(use-package helm-mt
:ensure nil
:bind (("C-c s" . helm-mt)))
(use-package magit (use-package magit
:ensure nil :ensure nil