Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display trailing whitespace in red #6179

Closed
yogsototh opened this issue May 31, 2016 · 5 comments
Closed

Display trailing whitespace in red #6179

yogsototh opened this issue May 31, 2016 · 5 comments
Projects

Comments

@yogsototh
Copy link

Hi! Is there a way to display trailing whitespace in red?

like here:

red whitespace

I only found a way to delete them and I can't even see whitespace anymore using the last version apparently.

Thanks!

@syl20bnr
Copy link
Owner

They should be highlighted by default, what is the major mode you are using ?

@yogsototh
Copy link
Author

yogsototh commented May 31, 2016

You're right, it works perfectly when I edit files with in deft, but they are hidden when I code in clojure.
I believe the major mode might be cider-mode.

@syl20bnr
Copy link
Owner

syl20bnr commented Jun 2, 2016

We only display them in prog modes I believe and chances are cider-mode does not derive from prog-mode.

@yogsototh
Copy link
Author

I know this is closed but here is something that worked for me. I added this in my dotspacemacs/user-config:

  ;; SHOW TRAILING WHITESPACE
  (require 'whitespace)
  (setq-default whitespace-style '(face trailing))
  (setq-default whitespace-line-column 80)   
  (global-whitespace-mode 1)

@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid!

@github-actions github-actions bot added the stale marked as a stale issue/pr (usually by a bot) label Feb 29, 2020
@lebensterben lebensterben removed the stale marked as a stale issue/pr (usually by a bot) label Feb 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Forum
  
To close
Development

No branches or pull requests

3 participants