]> git.eshelyaron.com Git - dotfiles.git/commitdiff
* .emacs.d/init.el (esy/tmp-dired): New command, bound to C-c t
authorEshel Yaron <me@eshelyaron.com>
Sat, 26 Aug 2023 12:14:24 +0000 (14:14 +0200)
committerEshel Yaron <me@eshelyaron.com>
Sat, 26 Aug 2023 12:14:24 +0000 (14:14 +0200)
.emacs.d/init.el

index 797dcf552334b41d2a9ed417045c49e85072f032..f779fb7c7957f81b0deb42e152eac9b61d5deea7 100644 (file)
   (interactive (list user-init-file))
   (find-file init))
 
+(defun esy/tmp-dired ()
+  "Start Dired in ~/tmp."
+  (interactive)
+  (dired "~/tmp"))
+
 (defun esy/ttyper ()
   (interactive)
   (let ((default-directory "~"))
@@ -953,6 +958,7 @@ Interactively, POINT is point and KILL is the prefix argument."
 (keymap-global-set "C-c R" #'esy/record)
 (keymap-global-set "C-c G" #'gnus)
 (keymap-global-set "C-c M" #'mastodon)
+(keymap-global-set "C-c t" #'esy/tmp-dired)
 (keymap-global-set "C-c F" #'esy/find-init-file)
 (keymap-global-set "C-c SPC" #'consult-mark)
 (keymap-global-set "C-c 1" #'delete-other-windows)