If I hide the cursor in a buffer with
(setq cursor-type nil)
it will reappear if I move it around.
Is there a way for hiding the cursor all the time (only for one specific buffer)?
As far as I am aware, moving the cursor around should not magically make the cursor reappear. Try out a default Emacs -Q and see if the behavior is present or not. Setting the variable
nil in a particular buffer should achieve the visual effect desired.
See Also: The popular built-in
internal-show-cursor to hide the cursor in a specific window rather than a buffer:
internal-show-cursor is a built-in function in `C source code'.
(internal-show-cursor WINDOW SHOW) Set the cursor-visibility flag of WINDOW to SHOW. WINDOW nil means use the selected window. SHOW non-nil means show a cursor in WINDOW in the next redisplay. SHOW nil means don’t show a cursor.