spacemacs-helm: Add C-c C-e to switch to wdired

Fixes #3724
This commit is contained in:
Aaron Jensen 2016-02-09 07:59:27 -08:00 committed by syl20bnr
parent 0daba08781
commit da66ac312f

View file

@ -27,3 +27,14 @@ Ensure that helm is required before calling FUNC."
;; search functions -----------------------------------------------------------
(spacemacs||set-helm-key "sww" helm-wikipedia-suggest)
(spacemacs||set-helm-key "swg" helm-google-suggest)
(defun spacemacs-helm//find-files-edit (candidate)
(dired (file-name-directory candidate))
(dired-goto-file candidate)
(dired-toggle-read-only))
(defun spacemacs-helm/find-files-edit ()
"Exits helm, opens a dired buffer and immediately switches to editable mode."
(interactive)
(helm-exit-and-execute-action 'spacemacs-helm//find-files-edit))
(with-eval-after-load 'helm
(define-key helm-find-files-map (kbd "C-c C-e") 'spacemacs-helm/find-files-edit))