Comment 2 for bug 1071173

Revision history for this message
Andreas Roehler (a-roehler) wrote : Re: [Bug 1071173] [NEW] show-trailing-whitespace t has no effect in python mode

Am 25.10.2012 10:04, schrieb Neilen Marais:
> Public bug reported:
>
> I'm using python-mode 6.0.12 from a bzr tag with emacs 23 as packaged by
> Ubuntu 12.04. I have the following in my emac.d:
>
> (add-hook 'python-mode-hook
> '(lambda () (setq show-trailing-whitespace t)) t)
>
> This should result in blaring red highligted trailing whitespace.
> Instead, no trailing whitespace seems to be highlighted.

that way it works for me

   (add-hook 'python-mode-hook
    (lambda () (setq show-trailing-whitespace t)))