[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/disk-usage 7fe5f1b 40/48: Fix keymap setup in disk-usag
From: |
Stefan Monnier |
Subject: |
[elpa] externals/disk-usage 7fe5f1b 40/48: Fix keymap setup in disk-usage-by-types-mode |
Date: |
Tue, 19 Feb 2019 08:00:05 -0500 (EST) |
branch: externals/disk-usage
commit 7fe5f1b90bad5259205b423784cf49b5c8447987
Author: Pierre Neidhardt <address@hidden>
Commit: Pierre Neidhardt <address@hidden>
Fix keymap setup in disk-usage-by-types-mode
---
disk-usage.el | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/disk-usage.el b/disk-usage.el
index 4e6619f..e089196 100644
--- a/disk-usage.el
+++ b/disk-usage.el
@@ -502,12 +502,6 @@ TYPE is the file extension (lower case)."
(format "%.2f"
(disk-usage--type-average-size e)))))))))))
-(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'."
- (setq tabulated-list-sort-key (cons "Total size" 'flip))
- (add-hook 'tabulated-list-revert-hook 'disk-usage-by-types--refresh nil t))
-
(defvar disk-usage-by-types-mode-map
(let ((map (make-sparse-keymap)))
(set-keymap-parent map tabulated-list-mode-map)
@@ -516,6 +510,12 @@ Also see `disk-usage-mode'."
map)
"Local keymap for `disk-usage-by-types-mode' buffers.")
+(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'."
+ (setq tabulated-list-sort-key (cons "Total size" 'flip))
+ (add-hook 'tabulated-list-revert-hook 'disk-usage-by-types--refresh nil t))
+
(defvar disk-usage-by-types-buffer-name "disk-usage-by-types")
;;;###autoload
- [elpa] externals/disk-usage 90607dc 23/48: Use file-info structure instead of vectors, (continued)
- [elpa] externals/disk-usage 90607dc 23/48: Use file-info structure instead of vectors, Stefan Monnier, 2019/02/19
- [elpa] externals/disk-usage ed9dc23 11/48: Keep cursor on current entry when re-ordering buffer, Stefan Monnier, 2019/02/19
- [elpa] externals/disk-usage dcfbd19 29/48: Rename sort functions, Stefan Monnier, 2019/02/19
- [elpa] externals/disk-usage 0c135ed 21/48: Handle inaccessible directories, Stefan Monnier, 2019/02/19
- [elpa] externals/disk-usage 19103ba 42/48: Add unmark-at-point, Stefan Monnier, 2019/02/19
- [elpa] externals/disk-usage 3357ba9 32/48: Include screenshots, Stefan Monnier, 2019/02/19
- [elpa] externals/disk-usage 2626642 15/48: Remove spurious "evil" keyword, Stefan Monnier, 2019/02/19
- [elpa] externals/disk-usage eefa57f 28/48: Turn disk-usage-size-format-function into a defcustom, Stefan Monnier, 2019/02/19
- [elpa] externals/disk-usage af22dd4 13/48: Display symlinks when not displaying full paths, Stefan Monnier, 2019/02/19
- [elpa] externals/disk-usage 3ffaf8e 14/48: Fix header display, Stefan Monnier, 2019/02/19
- [elpa] externals/disk-usage 7fe5f1b 40/48: Fix keymap setup in disk-usage-by-types-mode,
Stefan Monnier <=
- [elpa] externals/disk-usage d959b7b 36/48: Display % column and sort types by total size, Stefan Monnier, 2019/02/19
- [elpa] externals/disk-usage 3bbb09a 44/48: Right-align columns with units, Stefan Monnier, 2019/02/19
- [elpa] externals/disk-usage 441abf9 20/48: Add disk-usage-by-types, Stefan Monnier, 2019/02/19
- [elpa] externals/disk-usage 2d6fe3c 08/48: Resolve directory statically in button action, Stefan Monnier, 2019/02/19
- [elpa] externals/disk-usage 5998d42 41/48: Version 1.0.0, Stefan Monnier, 2019/02/19
- [elpa] externals/disk-usage 21b5749 38/48: Add disk-usage-files, Stefan Monnier, 2019/02/19
- [elpa] externals/disk-usage e44979a 45/48: Version 1.1.0, Stefan Monnier, 2019/02/19
- [elpa] externals/disk-usage 696dd5c2 17/48: Fix free references, Stefan Monnier, 2019/02/19
- [elpa] externals/disk-usage c55d478 34/48: Document modes and prefix argument, Stefan Monnier, 2019/02/19
- [elpa] externals/disk-usage 3af5aa8 25/48: Reset hash table properly, Stefan Monnier, 2019/02/19