diff options
| author | Franck Cuny <franck@fcuny.net> | 2021-10-18 08:26:55 -0700 |
|---|---|---|
| committer | Franck Cuny <franck@fcuny.net> | 2021-10-18 08:26:55 -0700 |
| commit | 41647bdd45532d4b325f24d639c3db8876ae1b66 (patch) | |
| tree | 36cd326dd5f817d4c0e978eb47d6028cfb627d0e /emacs/custom/fcuny-ui.el | |
| parent | emacs: start a shell when configuration is loaded (diff) | |
| download | emacs.d-41647bdd45532d4b325f24d639c3db8876ae1b66.tar.gz | |
emacs: select help buffer when it opens
Configure how we want to open an help buffer (on the left, with a
defined width), and let's jump to it.
Enable =visual-line-mode= for help buffers, otherwise it's unreadable.
Diffstat (limited to 'emacs/custom/fcuny-ui.el')
| -rw-r--r-- | emacs/custom/fcuny-ui.el | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/emacs/custom/fcuny-ui.el b/emacs/custom/fcuny-ui.el index 487ca3c..0bdc494 100644 --- a/emacs/custom/fcuny-ui.el +++ b/emacs/custom/fcuny-ui.el @@ -94,4 +94,14 @@ (use-package posframe :ensure t) +(setq display-buffer-alist + `( + ("\\*\\(.* # Help.*\\|Help\\)\\*" ; See the hooks for `visual-line-mode' + (display-buffer-reuse-mode-window display-buffer-in-side-window) + (window-width . 0.35) + (side . left) + (slot . 0)))) + +(add-hook 'help-mode-hook #'visual-line-mode) + (provide 'fcuny-ui) |
