about summary refs log tree commit diff
path: root/init.el
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2018-11-13T14·35+0100
committerVincent Ambo <github@tazj.in>2019-02-10T20·43+0100
commitbdff24f52b5488041e840c045c9f8c829dd9c94a (patch)
tree9eb8a8464fec300ad064115e241210d35744b73a /init.el
parent4a53a084a50b2e28cfe6e95c3222134146e2e7c9 (diff)
fix(init): Initialise ace-window-display-mode on launch
Diffstat (limited to 'init.el')
-rw-r--r--init.el11
1 files changed, 7 insertions, 4 deletions
diff --git a/init.el b/init.el
index 73780d4035..32b87ba32b 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: