about summary refs log tree commit diff
path: root/exwm-core.el
diff options
context:
space:
mode:
authorChris Feng <chris.w.feng@gmail.com>2016-07-22T04·26+0800
committerChris Feng <chris.w.feng@gmail.com>2016-07-22T04·26+0800
commitd86db3edd675d4c9fc00b4c3677507a9fd453c54 (patch)
tree26ec4d6f2c8a8cce3098de8d19e8a564cc65aaea /exwm-core.el
parent86777c54f341e3a0921c0970a4ed3fb99753e66d (diff)
Add minibuffer toggle command
* exwm-workspace.el (exwm-workspace-toggle-minibuffer): Add minibuffer
toggle command.

* exwm-core.el (exwm-mode-menu, exwm-mode-map): Substitute minibuffer
attach/detach commands with minibuffer toggle command.

* exwm-workspace.el (exwm-workspace-toggle-minibuffer): Insert various
auto load cookies.
Diffstat (limited to 'exwm-core.el')
-rw-r--r--exwm-core.el7
1 files changed, 1 insertions, 6 deletions
diff --git a/exwm-core.el b/exwm-core.el
index 09e16582be6a..7606a9e9416b 100644
--- a/exwm-core.el
+++ b/exwm-core.el
@@ -199,12 +199,7 @@
     ["Swap workspaces" exwm-workspace-swap]
     ["Move X window to" exwm-workspace-move-window :keys "C-c C-m"]
     ["Move X window from" exwm-workspace-switch-to-buffer]
-    ["Attach minibuffer" exwm-workspace-attach-minibuffer
-     (and (exwm-workspace--minibuffer-own-frame-p)
-          (not (exwm-workspace--minibuffer-attached-p)))]
-    ["Detach minibuffer" exwm-workspace-detach-minibuffer
-     (and (exwm-workspace--minibuffer-own-frame-p)
-          (exwm-workspace--minibuffer-attached-p))]
+    ["Toggle minibuffer" exwm-workspace-toggle-minibuffer]
     ["Switch workspace" exwm-workspace-switch]
     ;; Place this entry at bottom to avoid selecting others by accident.
     ("Switch to" :filter