Deer mode does not automatically replace dired after switching to and back from wdired
- Dominant language
- Emacs Lisp
- Stars
- 22.7k
- Forks
- 3.1k
- Avg merge
- 10h 46m
- Merged PRs (30d)
- 4
Description
### I confirm that...
- [X] I have searched the [issue tracker](https://github.com/doomemacs/doomemacs/issues), [documentation](https://docs.doomemacs.org), [FAQ](https://docs.doomemacs.org/-/faq), [Discourse](https://discourse.doomemacs.org), and [Google](https://google.com), in case this issue has already been reported/resolved.
- [X] I have read "[How to Debug Issues](https://doomemacs.org/d/how2debug)", and will use it to provide as much information about this issue as possible.
- [X] The issue can be reproduced on the **latest** available commit of Doom.
- [X] The issue can be reproduced on a stable release of Emacs, such as 27 or 28. *(Doom does not support development builds like 29+ or any version ending in .50 or .9x)*
### Expected behavior
When opening a new Dired buffer via `SPC o -` or `SPC f f`, deer should be enabled by default.
### Current behavior
Dired opens just fine but `deer` (M-x deer) has to be manually enabled every time.
### Steps to reproduce
1. Create a file using `SPC f f`. Named `foo`
2. Open Dired using `SPC o -` or `SPC f f` (ensure that +ranger is turned on for dired)
3. Switch to wdired using `C-c C-e`
4. Rename a file to `baz`
5. Exit out of wdired by pressing `C-c C-c`
6. Visit a `baz` file
6. Open dired again. (Here deer mode is lost until you restart Emacs Doom. Or you need to enable `deer` everytime you open dired)
### System Information
https://gist.github.com/azzamsa/1c676e9908c96ce051c5cda5685ce58e
### More context
Related issue:
- https://github.com/doomemacs/doomemacs/issues/3187
- [Discord | "ranger lost its keybindings after some usage" | Doom Emacs](https://discord.com/channels/406534637242810369/1087951121336778782)
Contributor guide
Assessment
This issue has not been assessed yet.