emacs: use dired-create-empty-file instead of our own thing
parent
9752b23ff7
commit
c25ca8b868
|
@ -15,11 +15,6 @@
|
||||||
"Binds a key into `agw-mode-map'."
|
"Binds a key into `agw-mode-map'."
|
||||||
(define-key agw-mode-map (kbd (concat "C-<tab> " key)) def))
|
(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 ()
|
(defun agw-prog-mode ()
|
||||||
"Sets up `prog-mode'."
|
"Sets up `prog-mode'."
|
||||||
(setq-local tab-always-indent nil
|
(setq-local tab-always-indent nil
|
||||||
|
|
|
@ -69,7 +69,6 @@
|
||||||
(agw-set-key "k" #'windmove-up)
|
(agw-set-key "k" #'windmove-up)
|
||||||
(agw-set-key "l" #'windmove-right)
|
(agw-set-key "l" #'windmove-right)
|
||||||
|
|
||||||
(agw-set-key "t" #'agw-touch)
|
|
||||||
|
|
||||||
(agw-key-map)
|
(agw-key-map)
|
||||||
|
|
||||||
|
@ -273,7 +272,8 @@
|
||||||
(use-package dired
|
(use-package dired
|
||||||
:config
|
:config
|
||||||
(setq dired-listing-switches "-alhp --si")
|
(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
|
(use-package ranger
|
||||||
:ensure t
|
:ensure t
|
||||||
|
|
Loading…
Reference in New Issue