all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* unable to bury buffer
@ 2024-11-02  7:59 Sivaram Neelakantan
  0 siblings, 0 replies; only message in thread
From: Sivaram Neelakantan @ 2024-11-02  7:59 UTC (permalink / raw)
  To: help-gnu-emacs


I wanted to hide the stats buffer but upon execution, the window is
split as two bufferswith the scratch and report in it.  How do I hide/bury
the report?

--8<---------------cut here---------------start------------->8---
(defun my-use-package-report ()
  (when use-package-compute-statistics
    ;; Run the report in a new buffer and immediately bury it
    (with-current-buffer (get-buffer-create "*use-package statistics**")
      (use-package-report))
    ;; Bury the report buffer and keep the focus on *scratch*
    (bury-buffer)
    (switch-to-buffer "*scratch*")))

;; Add this to your init.el file,ideally at the end of it
(add-hook 'after-init-hook #'my-use-package-report)
--8<---------------cut here---------------end--------------->8---


sivaram
-- 




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-11-02  7:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-02  7:59 unable to bury buffer Sivaram Neelakantan

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.