I'm new to doom emacs and I like it but I'm still new, so I saw this package called ranger that is a minor mode inside emacs and I want to make it run by default whenever I open dired. The documentation says set this variable ranger-override-dired-mode t, but I don't know where to start.

I tried to add this in ~/.doom.d/config.el but it crashes when launch emacs can you please guide me !!

  • What error message do you get? It is unlikely that setting a variable can do that, so I suspect something else is wrong. Does it work when you don't set the variable?
    – NickD
    Jul 17, 2020 at 13:24
  • when i add this line "(ranger-override-dired-mode t)" it crashes
    – ezio
    Jul 17, 2020 at 14:34
  • @NickD but when i add "(setq ranger-override-dired-mode t)" it doesnt crash but when i open dired i dont get the features of ranger :(
    – ezio
    Jul 17, 2020 at 14:36

1 Answer 1


Doom's :emacs dired module has a +ranger flag. Enable it and run doom sync on the command line. i.e. uncomment :emacs (dired +ranger) in ~/.doom.d/init.el.

Then ranger will be the default UI for dired.

See this entry in the manual for details on what Doom modules (and flags) are.

  • this causes dired to start in "Deer" mode NOT "Ranger"
    – thefonso
    Apr 26, 2023 at 23:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.