Created
August 19, 2015 11:29
-
-
Save xuchunyang/103c4dc2fc31cc3b1b9b to your computer and use it in GitHub Desktop.
Pick up a Emacs recent file to edit from the Command Line
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Put it in your .zshrc or .bashrc | |
function ef { sed -n 's/^ *"\(.*\)"/\1/p' ~/.emacs.d/recentf | pick | xargs $EDITOR } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
pick(1)
is from https://github.com/thoughtbot/pick.