diff --git a/fg42-config.el b/fg42-config.el index ec79311..fa64db5 100644 --- a/fg42-config.el +++ b/fg42-config.el @@ -6,7 +6,7 @@ (theme themes/color-theme-monokai) ;; Disable abilities which we do not want to load -(disable 'rbenv 'helm 'swiper) +(disable 'rbenv 'helm) ;; Activate these extensions (activate-extensions 'editor diff --git a/lib/extensions/editor.el b/lib/extensions/editor.el index fc1e940..c1312d7 100644 --- a/lib/extensions/editor.el +++ b/lib/extensions/editor.el @@ -10,6 +10,10 @@ (depends-on 'ov) (depends-on 'cheatsheet) +(with-ability ivy + (depends-on 'ivy) + (depends-on 'counsel)) + (with-ability ido (depends-on 'ido) (depends-on 'ido-ubiquitous) diff --git a/lib/extensions/editor/init.el b/lib/extensions/editor/init.el index a7b34f9..4f5a56a 100644 --- a/lib/extensions/editor/init.el +++ b/lib/extensions/editor/init.el @@ -144,19 +144,27 @@ (helm-mode 1)) - ;; Swiper --------------------------------------------------- - (ability swiper () - "Replace default isearch with swiper" + (ability ivy () + "Completion using ivy." (require 'ivy) (ivy-mode 1) (setq ivy-use-virtual-buffers t) - (global-set-key "\C-s" 'swiper) - (global-set-key "\C-r" 'swiper) (global-set-key (kbd "C-c C-r") 'ivy-resume) - (global-set-key [f6] 'ivy-resume) - (with-ability ido - (global-set-key (kbd "C-x b") 'ido-switch-buffer))) + (global-set-key (kbd "M-x") 'counsel-M-x) + (global-set-key (kbd " f") 'counsel-describe-function) + (global-set-key (kbd " v") 'counsel-describe-variable) + (global-set-key (kbd " l") 'counsel-load-library) + (global-set-key (kbd " i") 'counsel-info-lookup-symbol) + (global-set-key (kbd " u") 'counsel-unicode-char)) + + ;; Swiper --------------------------------------------------- + (ability swiper (ivy) + "Replace default isearch with swiper" + (global-set-key "\C-s" 'swiper) + (global-set-key "\C-r" 'swiper)) + ;; (with-ability ido + ;; (global-set-key (kbd "C-x b") 'ido-switch-buffer))) ;; Session Management --------------------------------------- (desktop-save-mode 1)