i write this in .emacs
(require 'dired-x)
(global-set-key (kbd "C-x C-j") 'dired-jump)
but when i start emacs ,i can use M-x dired-jump ,but C-x C-j does nothing.I googled a lot,perhaps it is
the autoloading problem?anyone can slove it?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
dired-xbindsdired-jumpby default, so if you haverequired the library, you shouldn’t need to add a binding (unless you wanted it on another key sequence, of course).That said, I’m not sure why this isn’t working for you, but try it without the
global-set-keyand see if it makes any difference?Also test starting
emacs -Q, entering(require 'dired-x)followed by C-j into the*scratch*buffer, and then testing whether C-xC-j is bound.Also check the value of the
dired-bind-jumpvariable:M-x
customize-groupRETdired-keysRETBy default it’s enabled, but when disabled that actually appears to unset a global binding if it exists, so depending on the actual order of execution, that might be undoing the binding you’ve set.