From 9728bb8605265b7f5c32eeb26360543c3bcae72a Mon Sep 17 00:00:00 2001 From: JSDurand Date: Mon, 15 Apr 2024 14:49:50 +0800 Subject: ibuffer: modify the clear function * ibuffer.el (durand-ibuffer-clear): Put the cursor at the correct position in the dashboard buffer. --- ibuffer.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ibuffer.el b/ibuffer.el index 4d72bb0..2fdd3dc 100644 --- a/ibuffer.el +++ b/ibuffer.el @@ -195,8 +195,8 @@ derived modes of `ibuffer-mode'."))) (mapcar #'car (ibuffer-current-state-list)))) (let ((current (current-buffer))) (pop-to-buffer dashboard-buffer-name '((display-buffer-same-window))) - (goto-char (point-max)) - (recenter -1) + (goto-char (point-min)) + (recenter 0) (pop-to-buffer current '((display-buffer-same-window))))) (t (mapc (function -- cgit v1.2.3-18-g5258