Questions tagged [whitespace-mode]

43 questions
6
votes
2 answers

Prevent whitespace-mode from overzealously highlighting blank lines at end

When using Whitespace Mode with the empty style enabled, the blank lines at the end of a file aren't highlighted if I'm on the very last line. However, I also don't want them to be highlighted if I'm on the line before last, since it visually…
lily
  • 375
  • 1
  • 8
3
votes
1 answer

Whitespace mode write dots for space chars

I'm using org-indent-mode. As far as I understand, the whitespace on the left is an overlay. When you use this mode in conjunction with whitespace-mode, then there appears whitespace indications (dots) in the org-mode overlay on the left. 2] Does…
Jenia Ivanov
  • 427
  • 4
  • 14
2
votes
1 answer

whitespace-cleanup stopped working

I'm not sure what I did, but I'm trying to use M-x whitespace-cleanup in a python file and nothing happens. How do I debug this?
daeda
  • 439
  • 3
  • 10
2
votes
1 answer

disable whitespace mode on new buffers

After doing an some emacs packages updates, every time a new file is opened the buffer has whitespace mode turned on. I see red on all the whitespace at the start of lines. I've tried disabling whitespace-mode, but can't change this behavior from…
Drew
  • 161
  • 6
1
vote
1 answer

Changing style for global-whitespace-mode not taking effect

Have written this function to change the style for global-whitespace-mode. I describe the problem as follows. Suppose one calls (space-glow "tab-trail") followed by (space-glow "allvis"). But trying to do (space-glow "tab-trail") again, the style…
Dilna
  • 1
  • 3
  • 11
1
vote
1 answer

Disable whitespace-mode for single mode

I'm using global-whitespace-mode with a particular whitespace-style as a default for all modes. How can I disable whitespace-mode completely for a single mode, eg. incoming email? I tried the following, but I still get all the default whitespace…
forthrin
  • 451
  • 2
  • 11
1
vote
1 answer

What kinds of whitespace are visualized in Whitespace mode?

According to the Emacs manual (section 14.16 Useless Whitespace): The kinds of whitespace visualized [in whitespace mode -- Evan] are determined by the list variable whitespace-style. However, when I execute C-h v whitespace-style RET, no match is…
Evan Aad
  • 1,541
  • 1
  • 14
  • 30
1
vote
1 answer

How to visualize trailing blanks and any tab characters (even non trailing)

I would like to visualize tabs. Here, I almost succeeded: (setq whitespace-style '(face trailing tabs lines-tail indentation)) face is needed for other things to work; trailing visualizes trailing blanks just perfectly; tabs doesn't…
Mark Karpov
  • 4,943
  • 1
  • 26
  • 54
0
votes
1 answer

How to set the column number from which on the text is marked as exceeding line length limit?

The context for my question: Linux Mint 21 Cinnamon, emacs version 28.1.2 compiled from source by myself. See the image to know what I am speaking about: being apparently not alone with such kind of question, as there is another not yet answered…
Claudio
  • 450
  • 3
  • 12
0
votes
3 answers

Custom whitespace-line-column for specific modes in whitespace-mode

I want to force whitespace-mode highlight line after 99 character in rust-mode (cuz this length recommended by guidelines). For other modes i want to leave this variable with default value(80). How can i do this?
Flowneee
  • 247
  • 1
  • 9