summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2017-10-05 21:34:32 -0400
committerKyle Meyer <kyle@kyleam.com>2017-10-05 21:34:32 -0400
commitbfa4630ae4ba348d036ab5fdd9c88c0c28a0a5a8 (patch)
tree06e8e7f9b1a9e883ff9b8c78f270d08c6f76fe00
parent30a4cdb0701942ee0cc8aff4f8f7f78dd658e2d6 (diff)
downloademacs.d-bfa4630ae4ba348d036ab5fdd9c88c0c28a0a5a8.tar.gz
dired: Add beginning-of-buffer variant
-rw-r--r--init.el2
-rw-r--r--lisp/km-dired.el6
2 files changed, 8 insertions, 0 deletions
diff --git a/init.el b/init.el
index 090ee53..0bb399f 100644
--- a/init.el
+++ b/init.el
@@ -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