commit
b16714a5cc
10
MODES
10
MODES
|
@ -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
|
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
|
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
|
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
|
import toy
|
||||||
mymode.ModeClass.install(self)
|
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?
|
3. How do they work?
|
||||||
|
|
||||||
|
|
2
README
2
README
|
@ -17,7 +17,7 @@ others. The code is somewhat commented, although currently there is only one
|
||||||
author. Buyer beware!
|
author. Buyer beware!
|
||||||
|
|
||||||
Requirements:
|
Requirements:
|
||||||
1. python 2.4 or higher
|
1. python 2.4 or higher (this may become 2.5 or higher)
|
||||||
2. ncurses
|
2. ncurses
|
||||||
3. bash
|
3. bash
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue