On 06/06/2019 10:46, Andrew Haley wrote:
> Handy hint. In your .emacs, add this:
> 
> ;;; goodbye trailing whitespace blues!!!
> 
> (add-hook 'java-mode-hook
>          (lambda ()
>            (progn
>              (set-variable 'show-trailing-whitespace t)
>              )))
> 
> (add-hook 'c-mode-hook
>         (lambda ()
>           (progn
>             (set-variable 'show-trailing-whitespace t)
>             )))
> 
> 
> (add-hook 'c++-mode-hook
>         (lambda ()
>           (progn
>             (set-variable 'show-trailing-whitespace t)
>             )))
There, fixed that for ya!

> ...and you'll never have any trouble with trailing whitespace again.
Now working beautifully, thank you!

regards,


Andrew Dinn
-----------
Senior Principal Software Engineer
Red Hat UK Ltd
Registered in England and Wales under Company Registration No. 03798903
Directors: Michael Cunningham, Michael ("Mike") O'Neill, Eric Shander

Reply via email to