From 5cda6fd005ea370138dbabd34ec5efa0ae1292ee Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Fri, 12 Dec 2014 20:35:00 -0800 Subject: [PATCH] Prefix argument to ace-jump-mode now does it across all windows. --- init.el | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/init.el b/init.el index 43fa2a41..794ef09d 100644 --- a/init.el +++ b/init.el @@ -337,6 +337,7 @@ The current directory is assumed to be the project's root otherwise." (setq mouse-wheel-scroll-amount '(1 ((shift) . 1))) (eval-after-load 'subword '(diminish 'subword-mode)) +(eval-after-load 'simple '(diminish 'visual-line-mode)) (display-time-mode 1) (setq reb-re-syntax 'string) @@ -392,7 +393,8 @@ The current directory is assumed to be the project's root otherwise." (use-package ace-jump-mode :ensure t - :commands ace-jump-mode + :commands (ace-jump-mode imalison:ace-jump-mode) + :bind (("C-j" . imalison:ace-jump-mode)) :init (progn (use-package ace-window @@ -401,8 +403,11 @@ The current directory is assumed to be the project's root otherwise." :bind ("C-c w" . ace-select-window))) :config (progn - (setq ace-jump-mode-scope 'window)) - :bind (("C-j" . ace-jump-mode))) + (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))))) (use-package ace-isearch :ensure t