diff options
| author | Martin Rudalics | 2019-08-01 09:56:44 +0200 |
|---|---|---|
| committer | Martin Rudalics | 2019-08-01 09:56:44 +0200 |
| commit | b22b59c77bf15edd4b4fa1969ce0e20402de1104 (patch) | |
| tree | 5bd5a89be90a8960dae4923753bc1ee3456fb1a9 | |
| parent | f8f1c8c33a0a8fa117bf06e3b34865dea48eb6a1 (diff) | |
| download | emacs-b22b59c77bf15edd4b4fa1969ce0e20402de1104.tar.gz emacs-b22b59c77bf15edd4b4fa1969ce0e20402de1104.zip | |
Add example for removing scroll bars/fringes from mini windows (Bug#8868)
* doc/lispref/display.texi (Fringe Size/Pos): Mention example
for how to permenantly remove fringes from minibuffer windows.
(Scroll Bars): Add example for how to permanently remove
scroll bars and fringes from minibuffer windows.
| -rw-r--r-- | doc/lispref/display.texi | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/doc/lispref/display.texi b/doc/lispref/display.texi index 7c27b3897b2..216d0332428 100644 --- a/doc/lispref/display.texi +++ b/doc/lispref/display.texi | |||
| @@ -3983,7 +3983,9 @@ with its @var{keep-margins} argument @code{nil} or omitted. However, | |||
| 3983 | if the optional fifth argument @var{persistent} is non-@code{nil} and | 3983 | if the optional fifth argument @var{persistent} is non-@code{nil} and |
| 3984 | the other arguments are processed successfully, the values specified | 3984 | the other arguments are processed successfully, the values specified |
| 3985 | here unconditionally survive subsequent invocations of | 3985 | here unconditionally survive subsequent invocations of |
| 3986 | @code{set-window-buffer}. | 3986 | @code{set-window-buffer}. This can be used to permanently turn off |
| 3987 | fringes in the minibuffer window, consult the description of | ||
| 3988 | @code{set-window-scroll-bars} for an example (@pxref{Scroll Bars}). | ||
| 3987 | @end defun | 3989 | @end defun |
| 3988 | 3990 | ||
| 3989 | @defun window-fringes &optional window | 3991 | @defun window-fringes &optional window |
| @@ -4418,6 +4420,23 @@ here unconditionally survive subsequent invocations of | |||
| 4418 | @code{set-window-buffer}. | 4420 | @code{set-window-buffer}. |
| 4419 | @end defun | 4421 | @end defun |
| 4420 | 4422 | ||
| 4423 | Using the @var{persistent} argument of @code{set-window-scroll-bars} | ||
| 4424 | and @code{set-window-fringes} (@pxref{Fringe Size/Pos}) you can | ||
| 4425 | reliably and permanently turn off scroll bars and/or fringes in any | ||
| 4426 | minibuffer window by adding the following snippet to your early init | ||
| 4427 | file (@pxref{Init File}). | ||
| 4428 | |||
| 4429 | @smallexample | ||
| 4430 | @group | ||
| 4431 | (add-hook 'after-make-frame-functions | ||
| 4432 | (lambda (frame) | ||
| 4433 | (set-window-scroll-bars | ||
| 4434 | (minibuffer-window frame) 0 nil 0 nil t) | ||
| 4435 | (set-window-fringes | ||
| 4436 | (minibuffer-window frame) 0 0 nil t))) | ||
| 4437 | @end group | ||
| 4438 | @end smallexample | ||
| 4439 | |||
| 4421 | The following four functions take as argument a live window which | 4440 | The following four functions take as argument a live window which |
| 4422 | defaults to the selected one. | 4441 | defaults to the selected one. |
| 4423 | 4442 | ||