emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/disk-usage 0c7d859 4/5: tabulated-list: Add `hl-line-mo


From: Stefan Monnier
Subject: [elpa] externals/disk-usage 0c7d859 4/5: tabulated-list: Add `hl-line-mode` minor mode.
Date: Wed, 17 Mar 2021 18:41:15 -0400 (EDT)

branch: externals/disk-usage
commit 0c7d859e013e0fb4a61964e72ba026bb1b5d3bb3
Author: Arnaud Hoffmann <tuedachu@gmail.com>
Commit: Arnaud Hoffmann <tuedachu@gmail.com>

    tabulated-list: Add `hl-line-mode` minor mode.
---
 disk-usage.el | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/disk-usage.el b/disk-usage.el
index 18a0ac0..a087c01 100644
--- a/disk-usage.el
+++ b/disk-usage.el
@@ -550,6 +550,7 @@ With a prefix argument, cache is updated when reverting the 
buffer.
 
 Also see `disk-usage-by-types-mode'."
   ;; TODO: Option to display extra attributes and default column to sort.
+  (hl-line-mode)
   (setq tabulated-list-padding 2)
   (setq tabulated-list-sort-key (cons "Size" 'flip))
   (setq tabulated-list-printer #'disk-usage--print-entry)
@@ -785,6 +786,7 @@ TYPE is the file extension (lower case)."
 (define-derived-mode disk-usage-by-types-mode tabulated-list-mode "Disk Usage 
By Types"
   "Mode to display disk usage by file types.
 Also see `disk-usage-mode'."
+  (hl-line-mode)
   (setq tabulated-list-sort-key (cons "Total size" 'flip))
   (add-hook 'tabulated-list-revert-hook 'disk-usage-by-types--refresh nil t))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]