 (add-hook 'python-mode-hook
           (lambda ()
             (flyspell-prog-mode)  ;on-the-fly spell check in comments
+            (add-to-list 'whitespace-style 'lines-tail)
             (define-key python-mode-map (kbd "C-c h") 'pylookup-lookup)  ;lookup in Python doc
             (define-key python-mode-map (kbd "<f11>") 'pdb-insert-break)  ;insert debug break
             (define-key python-mode-map (kbd "<f12>") 'pyp)  ;insert debug print



;;;; C++
(add-hook 'c++-mode-hook
          (lambda ()
            (flyspell-prog-mode)
            ))



;;; Display and cleanup bogus whitespace.
;;; See http://www.emacswiki.org/emacs/WhiteSpace
(require 'whitespace)
(setq whitespace-style '(face trailing tabs empty indentation space-before-tab))
(global-whitespace-mode 1)
(setq whitespace-action '(auto-cleanup))

