diff options
author | Kyle Meyer <kyle@kyleam.com> | 2017-10-05 21:34:32 -0400 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2017-10-05 21:34:32 -0400 |
commit | bfa4630ae4ba348d036ab5fdd9c88c0c28a0a5a8 (patch) | |
tree | 06e8e7f9b1a9e883ff9b8c78f270d08c6f76fe00 | |
parent | 30a4cdb0701942ee0cc8aff4f8f7f78dd658e2d6 (diff) | |
download | emacs.d-bfa4630ae4ba348d036ab5fdd9c88c0c28a0a5a8.tar.gz |
dired: Add beginning-of-buffer variant
-rw-r--r-- | init.el | 2 | ||||
-rw-r--r-- | lisp/km-dired.el | 6 |
2 files changed, 8 insertions, 0 deletions
@@ -1506,6 +1506,8 @@ (after 'dired (bind-keys :map dired-mode-map + ;; This overrides `dired-clean-directory'. + ("." . km/dired-beginning-of-buffer) ;; This overrides `dired-find-file', which is also ;; bound to "f". ("e" . km/org-open-dired-marked-files) diff --git a/lisp/km-dired.el b/lisp/km-dired.el index 00e0163..9062c61 100644 --- a/lisp/km-dired.el +++ b/lisp/km-dired.el @@ -93,6 +93,12 @@ "%Y%m%d%H%M.%S" (nth 5 (file-attributes it))))))) +;;;###autoload +(defun km/dired-beginning-of-buffer () + (interactive) + (beginning-of-buffer) + (dired-next-line 1)) + ;;; Copying file names |