summaryrefslogtreecommitdiff
path: root/cider-inspector.el
diff options
context:
space:
mode:
authortijsmallaerts <tijs.mallaerts@gmail.com>2016-12-01 00:07:31 +0100
committerBozhidar Batsov <bozhidar.batsov@gmail.com>2016-12-01 15:57:23 +0000
commitd19cf7d9d36c93eda56e1de63705a9c6c92e92ef (patch)
tree89e9f71d35524299f15112351b6d7cd0e68cd926 /cider-inspector.el
parent5e934401d961ddbb7327b4c46a7eeed28fb85578 (diff)
Add option to control whether the cider inspector window fills its frame
Diffstat (limited to 'cider-inspector.el')
-rw-r--r--cider-inspector.el7
1 files changed, 7 insertions, 0 deletions
diff --git a/cider-inspector.el b/cider-inspector.el
index 9d23a4b8..6f5625a3 100644
--- a/cider-inspector.el
+++ b/cider-inspector.el
@@ -53,6 +53,12 @@ The page size can be also changed interactively within the inspector."
:group 'cider-inspector
:package-version '(cider . "0.10.0"))
+(defcustom cider-inspector-fill-frame nil
+ "Controls whether the cider inspector window fills its frame."
+ :type 'boolean
+ :group 'cider-inspector
+ :package-version '(cider . "0.15.0"))
+
(defvar cider-inspector-mode-map
(let ((map (make-sparse-keymap)))
(set-keymap-parent map cider-popup-buffer-mode-map)
@@ -242,6 +248,7 @@ Set the page size in paginated view to PAGE-SIZE."
(cider-make-popup-buffer cider-inspector-buffer 'cider-inspector-mode)
(cider-inspector-render cider-inspector-buffer value)
(cider-popup-buffer-display cider-inspector-buffer t)
+ (when cider-inspector-fill-frame (delete-other-windows))
(with-current-buffer cider-inspector-buffer
(when (eq cider-inspector-last-command 'cider-inspector-pop)
(setq cider-inspector-last-command nil)