config
(require 'whitespace)
(setq whitespace-line-column 80) ;; limit line length
(setq whitespace-style '(face tabs empty trailing lines-tail))
For first line, whitespace-mode correctly highlights characters in line which are over 80 characters
In second line, org symbol (\Rightarrow) is used. whitespace-mode seems to highlight based on the character count instead of column number 80
Need help in making whitespace-mode highlight basing on the column number instead of character count.. or any better alternatives... Thanks
edit:
evaluation (current-column)
at the location of first highlighted(pink) l
in first line gives 80
evaluating (current-column)
at the location of first highlighted(pink) arrow in second line gives 16
(current-column)
at the location of the first pink arrow and add that result to your question with an edit. That way we can elaborate (or disprove) the stated hypothesis that: "whitespace-mode seems to highlight based on the character count instead of column number 80." One idea you may wish to explore is using the actual ascii character⇒
instead of\Rightarrow
. – lawlist Jan 23 '20 at 17:36