diff --git a/README.org b/README.org index 067cc7b..f2ed8a1 100644 --- a/README.org +++ b/README.org @@ -104,6 +104,18 @@ You could for example limit yourself to only one by using [[https://github.com/m ("u" "Install" phpactor-install-or-update)]]) #+END_SRC +*** mini-buffer / echo area height + invoking `phpactor-status` will change the value of `max-mini-window-height` + + Rationale: `phpactor-status` gives a quite long output, and some + part of it would be hidden in certain circumstances with emacs + default settings. + + As `max-mini-window-height` is modified at a global level, this + might conflict with your settings. In that case, you could + customize `phpactor-status-output-height` to be equal to + `max-mini-window-height` (PR with a better solution also welcome) + ** Troubleshooting You can run ``phpactor-status`` while visiting a project file. diff --git a/phpactor.el b/phpactor.el index 449a52c..1ec93b2 100644 --- a/phpactor.el +++ b/phpactor.el @@ -65,13 +65,19 @@ (defcustom phpactor-install-directory (eval-when-compile (expand-file-name (locate-user-emacs-file "phpactor/"))) - "Directory for setup Phactor. (default `~/.emacs.d/phpactor/')." + "Directory for setup Phpactor. (default `~/.emacs.d/phpactor/')." :type 'directory) (defcustom phpactor-use-native-json t "If non-nil, use native json parsing if available." :group 'phpactor :type 'boolean) + +(defcustom phpactor-status-output-height 18 + "Custom value for 'max-mini-window-height', allowing phpactor-status to show its output completely." + :link '(variable-link max-mini-window-height) + :group 'phpactor + :type '(integer float)) ;; Variables ;;;###autoload @@ -659,6 +665,7 @@ function." (defun phpactor-status () "Execute Phpactor RPC status command, and pop to buffer." (interactive) + (setq max-mini-window-height phpactor-status-output-height) (apply #'phpactor-action-dispatch (phpactor--rpc "status" []))) ;;;###autoload