From bdff24f52b5488041e840c045c9f8c829dd9c94a Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Tue, 13 Nov 2018 15:35:37 +0100 Subject: [PATCH] fix(init): Initialise ace-window-display-mode on launch --- init.el | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/init.el b/init.el index 73780d403..32b87ba32 100644 --- a/init.el +++ b/init.el @@ -23,10 +23,8 @@ (use-package ace-window :bind (("C-x o" . ace-window)) :init - (progn (setq aw-keys '(?f ?j ?d ?k ?s ?l ?a) - aw-scope 'frame) - ;; Show previews of ace-window numbers in the mode line for each window. - (ace-window-display-mode))) + (setq aw-keys '(?f ?j ?d ?k ?s ?l ?a) + aw-scope 'frame)) (use-package adjust-parens :hook ((lisp-mode . adjust-parens-mode) (emacs-lisp-mode . adjust-parens-mode))) @@ -163,6 +161,11 @@ ;;(add-to-list 'company-backends 'sly-company) )) +;; Show previews of ace-window numbers in the mode line for each +;; window. Initialising this in the package configuration does not +;; work. +(ace-window-display-mode) + ;; Some packages can only be initialised after the rest of the ;; settings has been applied: