From 6a63c63e877bebeed11b6a048c675cc503f2f5f8 Mon Sep 17 00:00:00 2001 From: JSDurand Date: Mon, 9 Aug 2021 23:59:02 +0800 Subject: change: beautify the dashboard in durand-ibuffer-clear * ibuffer.el (durand-ibuffer-clear): Place the point at the last character and recenter to show the whole buffer nicely. --- ibuffer.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'ibuffer.el') diff --git a/ibuffer.el b/ibuffer.el index 7d13214..888e269 100644 --- a/ibuffer.el +++ b/ibuffer.el @@ -111,7 +111,11 @@ derived modes of `ibuffer-mode'."))) ((kill-buffer buffer))))) (cons (current-buffer) - (mapcar #'car (ibuffer-current-state-list))))) + (mapcar #'car (ibuffer-current-state-list)))) + (with-current-buffer dashboard-buffer-name + (let ((inhibit-message t)) + (goto-char (point-max)) + (recenter -1)))) (t (mapc (function (lambda (buffer-and-mark) -- cgit v1.2.3-18-g5258