regexemacscustomizationdefault-valueminibuffer

Disable default value in minibuffer in Emacs


I'm using query-replace-regexp very often and there are very long expressions from time to time.

My problem is the following:

Query replace regexp (default foo -> bar):

Is there a possibility to hide the default expression?


Solution

  • If you use minibuffer-electric-default-mode, the default will disappear as soon as you type something into the minibuffer.