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
|
||||
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?
|
||||
|
||||
|
|
Loading…
Reference in New Issue