mart1n
mart1n

Reputation: 6203

How to NOT display newline character in Emacs Blank Mode

I have set up the Blank Mode in Emacs to display tabs, spaces and hard spaces only. However, I cannot get rid of the newline character. See the following screenshot, they are shown as the grey colored cursors:

Screenshot

Upvotes: 1

Views: 740

Answers (1)

razlebe
razlebe

Reputation: 7144

You need to edit your emacs config (which you have not shown us!) to remove the newline element from the blank-chars BlankMode option.

According to the BlankMode documentation, the blank-chars option determines which blank characters are visualized by BlankMode.

From the long documentation in the blank-mode.el package:

(defcustom blank-chars
  '(tabs spaces trailing lines space-before-tab newline
     indentation empty space-after-tab)
  "*Specify which kind of blank is visualized.

It's a list which element value can be:

   trailing     trailing blanks are visualized.

   tabs     TABs are visualized.

   spaces       SPACEs and HARD SPACEs are visualized.

   lines        lines whose have columns beyond
            `blank-line-column' are highlighted.
            Whole line is highlighted.
            It has precedence over
            `lines-tail' (see below).

   lines-tail   lines whose have columns beyond
            `blank-line-column' are highlighted.
            But only the part of line which goes
            beyond `blank-line-column' column.
            It has effect only if `lines' (see above)
            is not present in `blank-chars'.

   space-before-tab SPACEs before TAB are visualized.

   newline      NEWLINEs are visualized.

   indentation  8 or more SPACEs at beginning of line are
            visualized.

   empty        empty lines at beginning and/or end of buffer
            are visualized.

   space-after-tab  8 or more SPACEs after a TAB are visualized.

Any other value is ignored.

Upvotes: 1

Related Questions