From f42e8a5c9e570a9d1791580804e0c6800d7d1190 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Sun, 28 Jun 2015 19:05:48 -0400 Subject: [PATCH] replace ace-jump-mode with avy. --- dotfiles/emacs.d/init.el | 25 +++++++++---------------- 1 file changed, 9 insertions(+), 16 deletions(-) diff --git a/dotfiles/emacs.d/init.el b/dotfiles/emacs.d/init.el index 1de5cc58..0ef8cada 100644 --- a/dotfiles/emacs.d/init.el +++ b/dotfiles/emacs.d/init.el @@ -456,23 +456,16 @@ The current directory is assumed to be the project's root otherwise." :bind (("C-;" . jump-char-forward)) :ensure t) -(use-package ace-jump-mode +(use-package avy :ensure t - :commands (ace-jump-mode imalison:ace-jump-mode) - :bind (("C-j" . imalison:ace-jump-mode)) - :init - (progn - (use-package ace-window - :ensure t - :config (setq aw-keys '(?a ?s ?d ?f ?g ?h ?j ?k ?l)) - :bind ("C-c w" . ace-select-window))) - :config - (progn - (setq ace-jump-mode-scope 'window) - (defun imalison:ace-jump-mode (&optional prefix) - (interactive "P") - (let ((ace-jump-mode-scope (if prefix 'global 'window))) - (ace-jump-mode 0))))) + :bind (("C-j" . avy-goto-char) + ("M-g f" . avy-goto-line) + ("C-'" . avy-goto-char-2))) + +(use-package ace-window + :ensure t + :config (setq aw-keys '(?a ?s ?d ?f ?g ?h ?j ?k ?l)) + :bind ("C-c w" . ace-select-window)) (use-package flycheck :ensure t