Skip to content
Easy Change Directory (for eshell, dired env)
Emacs Lisp
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Easy Change Directory

(require 'ecd)
(global-unset-key "\M-c")
(global-set-key (kbd "M-c") 'ecd)

(setq ecd-list
      '((?/ . "/")
        (?~ . "~/")
        (?d . "~/Downloads")
        (?e . "~/.emacs.d")))

On eshell, type M-c e

$ pushd ~/.emacs.d

On other mode, type M-c e

M-x eshell
$ pushd ~/.emacs.d
M-x dired-jump

I will either put the prefix of C-u, without moving, if you run from the minibuffer, and just put the path to kill-ring

You can’t perform that action at this time.