Default Emacs settings show non-breaking spaces as a kind of underscore. This is very useful because these otherwise invisible characters would break code execution in many programming languages, and would be very hard to debug.
The setting, documented here, can be changed with the variable nobreak-char-display
. Org-mode also gives ways to specify file local variable values.
What I would like to achieve, though, is hiding these non-breaking spaces (which are very usual in the French language) everywhere in my org-mode file except in code blocks, where I need them to be plainly visible. To give an illustration, I want the non-breaking space before the interrogation point below hidden, but the other two visible.
Is there any way to achieve that?