summary refs log tree commit diff stats
path: root/init.el
diff options
context:
space:
mode:
authorCase Duckworth2021-08-19 17:29:22 -0500
committerCase Duckworth2021-08-19 17:29:22 -0500
commit8ac650fa1c3967ea06a001e3834364af21141193 (patch)
tree3dd9f68f632636e263d3890ec9b97290adf36073 /init.el
parentUpdate 0x0-default-host to new variable name (diff)
downloademacs-8ac650fa1c3967ea06a001e3834364af21141193.tar.gz
emacs-8ac650fa1c3967ea06a001e3834364af21141193.zip
Make helpful-buffer work more sanely
Ideally, I'd have something like "bury-buffer" and "kill-window" or
... whatever.  But this isn't so bad, really.
Diffstat (limited to 'init.el')
-rw-r--r--init.el12
1 files changed, 11 insertions, 1 deletions
diff --git a/init.el b/init.el index 10f39c7..6cb9593 100644 --- a/init.el +++ b/init.el
@@ -1140,11 +1140,21 @@ successive invocations."
1140 (add-to-list 'auto-mode-alist '("\\.fb\\'" . forth-block-mode)))) 1140 (add-to-list 'auto-mode-alist '("\\.fb\\'" . forth-block-mode))))
1141 1141
1142(setup (:straight helpful) 1142(setup (:straight helpful)
1143 (:option helpful-max-buffers 5
1144 ;;helpful-switch-buffer-function #'pop-to-buffer
1145 helpful-switch-buffer-function
1146 (lambda (buf)
1147 (pop-to-buffer buf
1148 '((display-buffer-reuse-mode-window
1149 display-buffer-pop-up-window)
1150 (mode . helpful-mode))
1151 :norecord)))
1143 (:global "<help> f" helpful-callable 1152 (:global "<help> f" helpful-callable
1144 "<help> v" helpful-variable 1153 "<help> v" helpful-variable
1145 "<help> k" helpful-key 1154 "<help> k" helpful-key
1146 "<help> o" helpful-symbol 1155 "<help> o" helpful-symbol
1147 "C-c C-d" helpful-at-point)) 1156 "C-c C-d" helpful-at-point)
1157 (:bind "q" kill-buffer-and-window))
1148 1158
1149(setup (:straight iscroll) 1159(setup (:straight iscroll)
1150 (:hook-into text-mode)) 1160 (:hook-into text-mode))