--HG--
branch : pmacs2
This commit is contained in:
Erik Osheim 2009-05-17 23:52:56 -04:00
commit b16714a5cc
2 changed files with 7 additions and 5 deletions

10
MODES
View File

@ -15,12 +15,14 @@ exist in Pmacs--there are no minor modes).
Modes are loaded and installed by application.py, or by $HOME/.pmc/conf, which
is sourced by application.py. To install a mode, import its class from the
package in which it resides, and call install() on the class, passing the
application as the only argument. Example:
application as the only argument. Example for the "toy" mode:
import mymode
mymode.ModeClass.install(self)
import toy
toy.install(self)
This code can be run in application.py's constructor, or in $HOME/.pmc/conf.
This code could be run in the application's constructor (as is the case with the
built-in modes) or in $HOME/.pmc/conf (which is the easiest way for end-users to
customize the program).
3. How do they work?

2
README
View File

@ -17,7 +17,7 @@ others. The code is somewhat commented, although currently there is only one
author. Buyer beware!
Requirements:
1. python 2.4 or higher
1. python 2.4 or higher (this may become 2.5 or higher)
2. ncurses
3. bash