[Python-Dev] tabs in idlelib/PyShell.py

John Lenton jlenton at gmail.com
Wed Jul 7 13:45:43 CEST 2004


On Tue, 06 Jul 2004 22:59:43 -0400, Kurt B. Kaiser <kbk at shore.net> wrote:
> 
> My tools (emacs/python-mode and IDLE) are set to insert spaces, and
> the following method was entered at the same time.  It's fine.  I
> have no idea how that happened.
> 
> I'm thinking that since spaces are standard, it would be neat if
> IDLE and python-mode could display a right arrow glyph for each
> tab.

(defface we-hate-tabs-face
  '((t (:background "red")))
    "Face for tab characters.")

(and standard-display-table (aset standard-display-table ?\C-i  ; Show
tabs highlighted
      (vector (+ ?\C-i (* (face-id 'we-hate-tabs-face) 524288) ))))

thanks to utis on #emacs, and to
http://groups.google.com/groups?q=face+display+table+gnu.emacs.help&hl=en&lr=&ie=UTF-8&scoring=d&selm=slrnb9kt08.2su.tuukkat%40s-inf-pc24.oulu.fi&rnum=9

-- 
John Lenton (jlenton at gmail.com) -- Random fortune:
bash: fortune: command not found


More information about the Python-Dev mailing list