vim (Improved Vi editor) which is on RedHat and probably most other Linux, also is python-sensitive. It does pretty colours and stuff, so for all you vi loyalists, there's no need to go over to the Dark Side. :)
phx. > -----Original Message----- > From: DeLano, Warren [mailto:war...@sunesis.com] > Sent: Monday, December 10, 2001 9:13 AM > To: David J. Schuller > Cc: pymol-users@lists.sourceforge.net > Subject: [PyMOL] Learning Python for PyMOL > > > > David Schuller asked about the best books for learning Python. There > are two key resources: > > (1) Guido's online tutorial is a good starting point for learning the > language. > > http://www.python.org/doc/current/tut/tut.html > > and (2) "Python Essential Reference" by David M. Beazley, (New Riders) > is a must-have reference for writing Python code. > > These tare what got me going a couple years back along with the other > documentation files on the Python web site. > http://www.python.org/doc/current/ > > NOTE: In order to write Python effectively, you need an editor which > supports its indentation scheme. The top choices are (1) > emacs running > python-mode, or (2) IDLE, the editor included with most Python > distributions. > > Writing Python without a Python-aware editor is a thankless > task due to > Python's sensitive block structures which would be a chore to > maintain. > I recommend that you use spaces instead of tabs to indent > Python code -- > PyMOL's convention is 3 spaces per block. > > The relavent portions of my .emacs file are included below in case > anyone is interested. I think most modern Linux > distrubutions include a > python mode in emacs by default. > > For simple tasks, the PyMOL command language (.pml files) is > easier than > Python because you can ignore the identation issue. However, > .pml files > are suited for real programming. > > Cheers, > Warren > > -- BEGIN .emacs excerpt > > (setq-default visible-bell t) > (setq-default backup-inhibited t) > (setq-default auto-save-default nil) > > (global-set-key "\C-c\C-w" 'goto-line) > > (setq-default tab-stop-list '(3 6 9 12 15 18 21 24 27 30 33 > 36 39 42) ) > > (setq-default tab-width 3) > (setq-default py-indent-offset 3) > (setq-default indent-tabs-mode nil) > > (setq auto-save-default nil) > (setq auto-save nil) > (setq load-path (cons "/usr/share/emacs/site-lisp/" load-path)) > (autoload 'python-mode "python-mode" "Python editing mode." t) > (setq auto-mode-alist > (cons '("\\.py$" . python-mode) auto-mode-alist)) > (setq auto-mode-alist > (cons '("\\.pym$" . python-mode) auto-mode-alist)) > (setq interpreter-mode-alist > (cons '("python" . python-mode) interpreter-mode-alist)) > (global-font-lock-mode) > > -- END .emacs excerpt > > -- > mailto:war...@sunesis.com > Warren L. DeLano, Ph.D. > Informatics Manager > Sunesis Pharmaceuticals, Inc. > 341 Oyster Point Blvd. > S. San Francisco, CA 94080 > (650)-266-3606 fax: (650)-266-3501 > > > > > -----Original Message----- > > From: DeLano, Warren > > Sent: Monday, December 10, 2001 7:40 AM > > To: Glen L. Prosise > > Cc: pymol-users@lists.sourceforge.net > > Subject: [PyMOL] PyMOL 0.73 Released (Win,Linux) > > > > > > > > Gang, > > > > Last night I posted binaries of PyMOL 0.73 for Windows and > > Linux to the > > downloads page. Read more at http://www.pymol.org > > > > This is the first version to support fragment and residue-based > > molecular building. However, you may find the process > > challenging with > > the current rudimentary interface. > > > > Cheers, > > Warren > > > > > > > > _______________________________________________ > > PyMOL-users mailing list > > PyMOL-users@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/pymol-users > > > > _______________________________________________ > PyMOL-users mailing list > PyMOL-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/pymol-users >