Emacs by default does not ask if you are sure you want to exit Emacs, so I added this to my configuration to prompt me to answer yes or no before quitting Emacs.
(setq confirm-kill-emacs 'y-or-n-p) ;; Confirm before killing emacs
I use evil-mode
so if I try to exit with :wq
or :w
it does prompt me in the mini buffer, but (as I am a WM only user using DWM) if I press Super+Shift+c
shortcut for my WM to close a program, it prompts me with a dialog instead of the minibuffer.
How do I set it so no matter what, always prefer the minibuffer, not just for prompting this, but for any kind of prompt, I would prefer the minibuffer. For example I have mu4e
also setup for my Email, and every time I try to resync the mails, it asks for my GPG authentication passphrase, in a GUI dialog. I would also like that to be in the minibuffer, so I want this setting to be globally set.