emacsdired

dired-x: How to set "Kill buffer of ..., too?" to yes without confirmation?


If you delete a file foo in dired-x, you get asked Kill buffer of foo, too?. How can I skip this question and always answer it with yes?


Solution

  • Other answers are stale, Since 26.1 Emacs provide a option to skip confirmation

    (setq dired-clean-confirm-killing-deleted-buffers nil)