Created
September 29, 2014 01:59
-
-
Save danlamanna/369f42089655af4b6bad to your computer and use it in GitHub Desktop.
List the number of files in your dired buffer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (if (equal major-mode 'dired-mode) | |
| (save-excursion | |
| (goto-char (point-max)) | |
| (format "(%d files)" (- (line-number-at-pos) 5)))) | |
| ;; -5 is a hack, but I think it will actually always work since dired requires -al at a minimum. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment