Tweak dired keybinds (W, C-w)

This commit is contained in:
Kashish Sharma 2016-09-28 17:15:17 +05:30
parent 4272b5e5ec
commit 3f27ac4fcb
1 changed files with 6 additions and 2 deletions

View File

@ -13,9 +13,13 @@
"-Acl --group-directories-first --time-style=long-iso"
)
(require 'launch)
(add-hook 'dired 'turn-on-launch-mode)
(add-hook 'dired-mode-hook 'turn-on-launch-mode)
(define-key dired-mode-map (kbd "C-j") 'launch-files-dired)
(global-set-key (kbd "s-l") 'launch-file))
(global-set-key (kbd "s-l") 'launch-file)
(define-key dired-mode-map (kbd "W") 'wdired-change-to-wdired-mode)
;; after learning that this copies whole paths with null argument,
;; this became a whole lot more useful
(define-key dired-mode-map (kbd "C-w") 'dired-copy-filename-as-kill))
(with-eval-after-load 'project-explorer
(global-set-key (kbd "<f5> e") 'project-explorer-toggle))