Skip to content

Instantly share code, notes, and snippets.

@randomwangran
Created September 20, 2019 13:49
Show Gist options
  • Save randomwangran/f9754a6b9f7b49bfa1573855f4a46897 to your computer and use it in GitHub Desktop.
Save randomwangran/f9754a6b9f7b49bfa1573855f4a46897 to your computer and use it in GitHub Desktop.
C-x C-j runs the command dired-jump (found in global-map), which is an
interactive autoloaded compiled Lisp function in ‘dired-x.el’.
It is bound to C-x C-j.
(dired-jump &optional OTHER-WINDOW FILE-NAME)
Jump to Dired buffer corresponding to current buffer.
If in a file, Dired the current directory and move to file’s line.
If in Dired already, pop up a level and goto old directory’s line.
In case the proper Dired file line cannot be found, refresh the dired
buffer and try again.
When OTHER-WINDOW is non-nil, jump to Dired buffer in other window.
When FILE-NAME is non-nil, jump to its line in Dired.
Interactively with prefix argument, read FILE-NAME.
[back]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment