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.
This commit is contained in:
Chris Feng 2016-07-22 12:26:29 +08:00
parent 86777c54f3
commit d86db3edd6
2 changed files with 13 additions and 6 deletions

View file

@ -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