summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJSDurand <mmemmew@gmail.com>2021-08-09 23:59:02 +0800
committerJSDurand <mmemmew@gmail.com>2021-08-09 23:59:02 +0800
commit6a63c63e877bebeed11b6a048c675cc503f2f5f8 (patch)
tree5c01d50afbd9e5dc3243850f32d0c6dd1c731a33
parent71e3a7871d9493612e78152109d9e8aba49d39fb (diff)
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.
-rw-r--r--ibuffer.el6
1 files changed, 5 insertions, 1 deletions
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)