I'd like to use helm as a drop-in replacement for display-completion-list.
The only issue is that it displays this line on top, which I don't want:
C-z: I don't want this line here (keeping session).
Here's the code to illustrate:
(helm :sources `((name . "Do you have?")
(candidates . ("Red Leicester"
"Tilsit"
"Caerphilly"
"Bel Paese"
"Red Windsor"
"Stilton"))
(action . identity)
(persistent-help . "I don't want this line here"))
:buffer "*cheese shop*")
I've tried setting persistent-help to nil, or not setting it at all, but it
still appears. How can I turn it off?
The attribute
helm-persistent-help-stringcomes with the libraryhelm-plugin. If you do not load it you get no help string. If you need to loadhelm-pluginfor some reason you can disable the functionhelm-persistent-help-stringafterwards by:If you want to remove the gray header line completely you can do:
With
defadviceyou change the behavior ofhelmglobally. If you want to changehelm-display-mode-linejust temporarily for the execution of yourhelmcommand you could use:(Note, that stuff like
cl-fletdoes not work this way.)