Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to highlight tabs in Emacs

I use spaces for indentation in source code, how can I highlight/mark tabs, that are in code?

It could be red, the same as when I use (setq-default show-trailing-whitespace t)

like image 529
jcubic Avatar asked Feb 25 '14 09:02

jcubic


1 Answers

As a hint from @abo-abo I found that I can use whitespace-mode with this code:

(setq whitespace-style '(face tabs))
(whitespace-mode)
like image 157
jcubic Avatar answered Oct 12 '22 03:10

jcubic