简体   繁体   中英

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:

屏幕截图

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM