emacs: use dired-create-empty-file instead of our own thing

master
an 2020-02-15 21:54:17 -05:00
parent 9752b23ff7
commit c25ca8b868
2 changed files with 2 additions and 7 deletions

View File

@ -15,11 +15,6 @@
"Binds a key into `agw-mode-map'."
(define-key agw-mode-map (kbd (concat "C-<tab> " key)) def))
(defun agw-touch (fname)
"Touches a file asynchronously."
(interactive "FFile to touch: ")
(start-process "agw-touch" nil "touch" (expand-file-name fname)))
(defun agw-prog-mode ()
"Sets up `prog-mode'."
(setq-local tab-always-indent nil

View File

@ -69,7 +69,6 @@
(agw-set-key "k" #'windmove-up)
(agw-set-key "l" #'windmove-right)
(agw-set-key "t" #'agw-touch)
(agw-key-map)
@ -273,7 +272,8 @@
(use-package dired
:config
(setq dired-listing-switches "-alhp --si")
(agw-set-key "f" #'dired-jump))
(agw-set-key "f" #'dired-jump)
(agw-set-key "t" #'dired-create-empty-file))
(use-package ranger
:ensure t