about summary refs log tree commit diff stats
path: root/.emacs.d
diff options
context:
space:
mode:
authorDavid Morgan <djm_uk@protonmail.com>2022-10-12 16:45:41 +0100
committerDavid Morgan <djm_uk@protonmail.com>2022-10-12 16:45:41 +0100
commit4a90d3826827fb4fd36cfdb9d90e5017fce5c649 (patch)
tree4a4f309fe6f3b0e473fbaada7af1157c66aa74bf /.emacs.d
parentc60587f1d5f19e1db913e8fe716e5d908f3d5adc (diff)
downloaddotfiles-4a90d3826827fb4fd36cfdb9d90e5017fce5c649.tar.gz
Add helpful windows to popper list
Diffstat (limited to '.emacs.d')
-rw-r--r--.emacs.d/lisp/init-windows.el22
1 files changed, 12 insertions, 10 deletions
diff --git a/.emacs.d/lisp/init-windows.el b/.emacs.d/lisp/init-windows.el
index 7c0046e..9148818 100644
--- a/.emacs.d/lisp/init-windows.el
+++ b/.emacs.d/lisp/init-windows.el
@@ -80,16 +80,18 @@
   :bind (("<f5>"   . popper-toggle-latest)
          ("<f6>"   . popper-cycle)
          ("<f7>" . popper-toggle-type))
-  :init
-  (setq popper-reference-buffers
-        '("\\*Messages\\*"
-          "\\*HTTP Response\\*"
-          "Output\\*$"
-          "\\*Async Shell Command\\*"
-          help-mode
-          compilation-mode))
-  (popper-mode +1)
-  (popper-echo-mode +1))
+  :custom
+  (popper-reference-buffers
+   '("\\*Messages\\*"
+     "\\*HTTP Response\\*"
+     "Output\\*$"
+     "\\*Async Shell Command\\*"
+     help-mode
+     helpful-mode
+     compilation-mode))
+  :hook (emacs-startup . (lambda ()
+                           (popper-mode +1)
+                           (popper-echo-mode +1))))
 
 (provide 'init-windows)
 ;;; init-windows.el ends here