[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/disk-usage 54d4aee 25/26: Propertize size, percent and
From: |
Pierre Neidhardt |
Subject: |
[elpa] externals/disk-usage 54d4aee 25/26: Propertize size, percent and children columns |
Date: |
Tue, 26 Feb 2019 03:06:41 -0500 (EST) |
branch: externals/disk-usage
commit 54d4aee73d3333feb5589a712b62905eb65926ac
Author: Pierre Neidhardt <address@hidden>
Commit: Pierre Neidhardt <address@hidden>
Propertize size, percent and children columns
---
disk-usage.el | 24 +++++++++++++++++++-----
1 file changed, 19 insertions(+), 5 deletions(-)
diff --git a/disk-usage.el b/disk-usage.el
index dd28afe..fa25931 100644
--- a/disk-usage.el
+++ b/disk-usage.el
@@ -110,7 +110,19 @@
(defface disk-usage-symlink-directory
'((t :inherit disk-usage-symlink
:underline t))
- "Face for symlinks.")
+ "Face for symlinked directories.")
+
+(defface disk-usage-size
+ '((t :inherit default))
+ "Face for sizes.")
+
+(defface disk-usage-percent
+ '((t :inherit default))
+ "Face for the percent column.")
+
+(defface disk-usage-children
+ '((t :inherit default))
+ "Face for the children column.")
(defvar disk-usage-mode-map
(let ((map (make-sparse-keymap)))
@@ -470,11 +482,13 @@ FILE-ENTRY may be a string or a button."
cols)
cols))))
(setq x (tabulated-list-print-col 0
- (funcall
disk-usage-size-format-function
- (string-to-number (aref cols
0)))
+ (propertize
+ (funcall
disk-usage-size-format-function
+ (string-to-number (aref cols
0)))
+ 'face 'disk-usage-size)
x))
- (setq x (tabulated-list-print-col 1 (aref cols 1) x))
- (setq x (tabulated-list-print-col 2 (aref cols 2) x))
+ (setq x (tabulated-list-print-col 1 (propertize (aref cols 1) 'face
'disk-usage-percent) x))
+ (setq x (tabulated-list-print-col 2 (propertize (aref cols 2) 'face
'disk-usage-children) x))
(setq x (tabulated-list-print-col 3 (disk-usage--print-file-col (aref
cols 3)) x))
(cl-loop for i from 4 below ncols
do (setq x (tabulated-list-print-col i (aref cols i) x))))
- [elpa] externals/disk-usage 284c142 24/26: Inherit from error/warning faces instead of defining foreground colors, (continued)
- [elpa] externals/disk-usage 284c142 24/26: Inherit from error/warning faces instead of defining foreground colors, Pierre Neidhardt, 2019/02/26
- [elpa] externals/disk-usage 7fd6e43 19/26: Add filters to recursive listings, Pierre Neidhardt, 2019/02/26
- [elpa] externals/disk-usage cec7fc6 02/26: Require Emacs 26 for file-attribute-* functions, Pierre Neidhardt, 2019/02/26
- [elpa] externals/disk-usage 2874158 03/26: Add TODOs about file-notify, date filtering, formatting and process-file, Pierre Neidhardt, 2019/02/26
- [elpa] externals/disk-usage c44cc97 01/26: Set default for directory-size-function dynamically, Pierre Neidhardt, 2019/02/26
- [elpa] externals/disk-usage 6846590 15/26: Add 1-hour filter, Pierre Neidhardt, 2019/02/26
- [elpa] externals/disk-usage 1d85ea5 10/26: Fix missing total-size in header, Pierre Neidhardt, 2019/02/26
- [elpa] externals/disk-usage 0feb208 18/26: Message instead of warning when no filters, Pierre Neidhardt, 2019/02/26
- [elpa] externals/disk-usage aa7d267 17/26: Document filters, Pierre Neidhardt, 2019/02/26
- [elpa] externals/disk-usage bcae407 21/26: Replace (delq (mapcar ...)) with cl-loop, Pierre Neidhardt, 2019/02/26
- [elpa] externals/disk-usage 54d4aee 25/26: Propertize size, percent and children columns,
Pierre Neidhardt <=
- [elpa] externals/disk-usage 8bf5d5c 08/26: Break some long lines, Pierre Neidhardt, 2019/02/26
- [elpa] externals/disk-usage 0fff6a8 12/26: Fix 'nil' children issue on inaccessible directories, Pierre Neidhardt, 2019/02/26
- [elpa] externals/disk-usage a53be8d 26/26: Version 1.2.0, Pierre Neidhardt, 2019/02/26
- [elpa] externals/disk-usage 6a01954 05/26: Rename disk-usage--path-at-point -> disk-usage--file-name-at-point, Pierre Neidhardt, 2019/02/26
- [elpa] externals/disk-usage 364c62b 20/26: Bind "a" and "A" to filter commands in disk-usage-by-types, Pierre Neidhardt, 2019/02/26
- [elpa] externals/disk-usage 6a214bc 09/26: Add many docstrings, Pierre Neidhardt, 2019/02/26
- [elpa] externals/disk-usage 488ddc8 14/26: Add support for filters, Pierre Neidhardt, 2019/02/26
- [elpa] externals/disk-usage 7708379 07/26: Use process-file instead of call-process, Pierre Neidhardt, 2019/02/26
- [elpa] externals/disk-usage 7b14829 22/26: Normalize filter names, Pierre Neidhardt, 2019/02/26
- [elpa] externals/disk-usage 2d36a87 04/26: Fix disk-usage--path-at-point to return directory, Pierre Neidhardt, 2019/02/26