about summary refs log tree commit diff
path: root/tools
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@google.com>2019-12-25T13·10+0100
committerVincent Ambo <tazjin@google.com>2019-12-25T13·10+0100
commit29af390e8c146e9f741710342db1aa369681fb75 (patch)
treee52b590a03b43e1ebda0a688628d3dcbfdb76369 /tools
parentb59788779ac45de4e903e81059b55b4115d0319b (diff)
fix(emacs.d): Slightly more reliable way of setting edwina prefix r/302
Diffstat (limited to 'tools')
-rw-r--r--tools/emacs/config/desktop.el4
-rw-r--r--tools/emacs/config/init.el1
2 files changed, 4 insertions, 1 deletions
diff --git a/tools/emacs/config/desktop.el b/tools/emacs/config/desktop.el
index 05402f68bcff..fb927b12e4d8 100644
--- a/tools/emacs/config/desktop.el
+++ b/tools/emacs/config/desktop.el
@@ -211,6 +211,10 @@
 (exwm-input-set-key (kbd "s-m s") #'randr-layout-single)
 
 ;; Use edwina for window management shortcuts
+;;
+;; Its initialisation process is oddly stateful, hence configuration
+;; happens here before toggling its minor mode.
+(setq edwina-keymap-prefix (kbd "s-w"))
 (edwina-mode 1)
 
 (provide 'desktop)
diff --git a/tools/emacs/config/init.el b/tools/emacs/config/init.el
index 614eadae0332..0c663672e08f 100644
--- a/tools/emacs/config/init.el
+++ b/tools/emacs/config/init.el
@@ -48,7 +48,6 @@
 (use-package edwina
   :after (ace-window ivy)
   :init
-  (setq edwina-keymap-prefix (kbd "s-w"))
   (defun edwina-split-to-buffer ()
     (interactive)
     (ivy-read "Switch to buffer: " #'internal-complete-buffer