I have this in my init.el file:
(use-package dired
:init
(progn
;; Details toggling is bound to "(" in `dired-mode' by default
(setq diredp-hide-details-initially-flag nil))
:config
(use-package dired+
:ensure t)
(add-hook 'dired-mode-hook 'auto-revert-mode)
(add-hook 'dired-mode-hook (lambda () (setq auto-revert-verbose nil)))
)
Running Emacs with no window mode emacs -nw
and when moving cursors I get "change ownership" instead when in directory view.
Removing the code related to Dired+ solved the problem.
Any pointers to why that happens? If no workaround, is there a way to disable Dired+ mode only when running emacs -nw
emacs -nw -Q
and explicitly requiringdired+.el
(i.e., not usinguse-package
), and send it along to me by email (see file header).use-package
, but if you explicitly putdired+.el
in yourload-path
and then put(require 'dired+)
in your init file, you can make the latter conditional:(when (display-graphic-p) (require 'dired+.el))
will require it only when Emacs is not in terminal mode.