Skip to content

Instantly share code, notes, and snippets.

@AlexBaranosky
Created February 3, 2015 18:56
Show Gist options
  • Save AlexBaranosky/92970a625d9aaae45729 to your computer and use it in GitHub Desktop.
Save AlexBaranosky/92970a625d9aaae45729 to your computer and use it in GitHub Desktop.
(defun change-to-wfoo-mode ()
(interactive)
(cond ((eq major-mode 'dired-mode)
(wdired-change-to-wdired-mode))
((eq major-mode 'grep-mode)
(wgrep-change-to-wgrep-mode))
(t
(message "Not in either dired-mode or grep-mode :("))))
(key-chord-define-global "ww" 'change-to-wfoo-mode)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment