From 29af390e8c146e9f741710342db1aa369681fb75 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Wed, 25 Dec 2019 14:10:00 +0100 Subject: fix(emacs.d): Slightly more reliable way of setting edwina prefix --- tools/emacs/config/desktop.el | 4 ++++ tools/emacs/config/init.el | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) 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 -- cgit 1.4.1