branch: externals/mct commit cc8a5c145836aeeb76faf3109560c3663c87871c Author: Protesilaos Stavrou <i...@protesilaos.com> Commit: Protesilaos Stavrou <i...@protesilaos.com>
Mention temp-buffer-resize-mode in the docs --- README.org | 14 +++++++++++++- mct.info | 33 +++++++++++++++++++++++---------- mct.texi | 14 +++++++++++++- 3 files changed, 49 insertions(+), 12 deletions(-) diff --git a/README.org b/README.org index f625554..d819fe5 100644 --- a/README.org +++ b/README.org @@ -324,7 +324,7 @@ And with more options: (mct-mode 1) #+end_src -Other useful extras from the Emacs source code: +Other useful extras from the Emacs source code (read their doc strings): #+begin_src emacs-lisp (setq enable-recursive-minibuffers t) @@ -333,6 +333,18 @@ Other useful extras from the Emacs source code: (file-name-shadow-mode 1) (minibuffer-depth-indicate-mode 1) (minibuffer-electric-default-mode 1) + +;;; Temporary window height + +;; Evaluate: (info "(emacs) Temporary Displays") +;; +;; Or read: ;; <https://www.gnu.org/software/emacs/manual/html_node/emacs/Temporary-Displays.html>. + +(setq temp-buffer-max-height (lambda (buf) (/ (window-height) 4))) +;; OR +;; (setq temp-buffer-max-height (lambda (buf) (/ (frame-height) 4))) + +(temp-buffer-resize-mode 1) #+end_src * Keymaps diff --git a/mct.info b/mct.info index 3900910..63b687c 100644 --- a/mct.info +++ b/mct.info @@ -327,7 +327,8 @@ Minimal setup: (mct-mode 1) - Other useful extras from the Emacs source code: + Other useful extras from the Emacs source code (read their doc +strings): (setq enable-recursive-minibuffers t) (setq minibuffer-eldef-shorten-default t) @@ -336,6 +337,18 @@ Minimal setup: (minibuffer-depth-indicate-mode 1) (minibuffer-electric-default-mode 1) + ;;; Temporary window height + + ;; Evaluate: (info "(emacs) Temporary Displays") + ;; + ;; Or read: ;; <https://www.gnu.org/software/emacs/manual/html_node/emacs/Temporary-Displays.html>. + + (setq temp-buffer-max-height (lambda (buf) (/ (window-height) 4))) + ;; OR + ;; (setq temp-buffer-max-height (lambda (buf) (/ (frame-height) 4))) + + (temp-buffer-resize-mode 1) + File: mct.info, Node: Keymaps, Next: Extensions, Prev: Sample setup, Up: Top @@ -971,15 +984,15 @@ Node: Cyclic behaviour5906 Node: Selecting candidates7637 Node: Installation10343 Node: Sample setup11428 -Node: Keymaps13110 -Node: Extensions13754 -Node: Alternatives14549 -Node: Acknowledgements14942 -Node: GNU Free Documentation License15551 -Node: Indices40906 -Node: Function index41076 -Node: Variable index41726 -Node: Concept index42690 +Node: Keymaps13529 +Node: Extensions14173 +Node: Alternatives14968 +Node: Acknowledgements15361 +Node: GNU Free Documentation License15970 +Node: Indices41325 +Node: Function index41495 +Node: Variable index42145 +Node: Concept index43109 End Tag Table diff --git a/mct.texi b/mct.texi index e15bd9e..ea12bd4 100644 --- a/mct.texi +++ b/mct.texi @@ -370,7 +370,7 @@ And with more options: (mct-mode 1) @end lisp -Other useful extras from the Emacs source code: +Other useful extras from the Emacs source code (read their doc strings): @lisp (setq enable-recursive-minibuffers t) @@ -379,6 +379,18 @@ Other useful extras from the Emacs source code: (file-name-shadow-mode 1) (minibuffer-depth-indicate-mode 1) (minibuffer-electric-default-mode 1) + +;;; Temporary window height + +;; Evaluate: (info "(emacs) Temporary Displays") +;; +;; Or read: ;; <https://www.gnu.org/software/emacs/manual/html_node/emacs/Temporary-Displays.html>. + +(setq temp-buffer-max-height (lambda (buf) (/ (window-height) 4))) +;; OR +;; (setq temp-buffer-max-height (lambda (buf) (/ (frame-height) 4))) + +(temp-buffer-resize-mode 1) @end lisp @node Keymaps