Go to file
Erik Osheim b99a73988e add basic support for roy
--HG--
branch : pmacs2
2012-09-27 21:47:42 -04:00
buffer improved handling of encodings/utf-8/curses 2010-06-04 00:10:27 -04:00
code_examples add scala code example 2010-09-27 01:06:10 -04:00
method fix git blame 2012-05-04 09:50:35 -04:00
mode add basic support for roy 2012-09-27 21:47:42 -04:00
test some initial tests using nose 2009-08-14 00:00:50 -04:00
tools --HG-- 2008-11-12 20:48:37 +00:00
.hgignore created abstract base class vc-diff; refactored svn-diff 2009-05-10 01:45:57 -04:00
BUGS update docs 2009-07-22 10:53:21 -04:00
IDEAS lay groundwork for variable-width characters; document problems 2010-04-27 01:14:41 -04:00
MODES updated documentation 2009-05-17 23:52:14 -04:00
README improve README 2010-03-20 09:29:16 -04:00
aesutil.py lots of clean-up and documentation 2009-07-23 16:26:59 -04:00
application.py add basic support for roy 2012-09-27 21:47:42 -04:00
bufferlist.py range() -> xrange() refactor 2009-11-12 00:01:05 -05:00
cache.py lots of clean-up and documentation 2009-07-23 16:26:59 -04:00
color.py remove itertools.product so pmacs works in python 2.5 2010-05-22 20:00:22 -04:00
completer.py more pychecker cleanup 2009-11-11 23:22:14 -05:00
context.py range() -> xrange() refactor 2009-11-12 00:01:05 -05:00
default.py initial ctags/etags support for C 2010-08-16 23:45:33 -04:00
dirutil.py range() -> xrange() refactor 2009-11-12 00:01:05 -05:00
etags.py some small cleanup 2011-11-08 22:31:11 -05:00
gdb.py more pychecker-inspired cleanup 2009-11-11 23:45:03 -05:00
highlight.py range() -> xrange() refactor 2009-11-12 00:01:05 -05:00
ispell.py more pychecker cleanup 2009-11-11 23:22:14 -05:00
keyinput.py range() -> xrange() refactor 2009-11-12 00:01:05 -05:00
lex.py improvements to nasm mode 2010-10-16 11:03:34 -04:00
minibuffer.py added search-tags, abc for tag commands, and fixed auto-initialization of TAGS 2010-08-17 07:47:52 -04:00
miniparse.py range() -> xrange() refactor 2009-11-12 00:01:05 -05:00
parse.py range() -> xrange() refactor 2009-11-12 00:01:05 -05:00
point.py point2->point and buffer2->buffer 2007-10-22 00:50:11 +00:00
regex.py make indenting with tabs work better 2010-07-03 23:33:05 -04:00
render.py maybe editing with tabs actually works now? 2010-07-03 23:08:15 -04:00
searchutil.py range() -> xrange() refactor 2009-11-12 00:01:05 -05:00
tab.py more updates to scala mode and indentation 2012-09-21 08:01:05 -06:00
term.py more pychecker-inspired cleanup 2009-11-11 23:45:03 -05:00
util.py more pychecker-inspired cleanup 2009-11-11 23:45:03 -05:00
window.py added some stuff for working with sxr output in scala 2010-10-26 19:40:34 -04:00

README

Pmacs

by Erik Osheim <erik@osheim.org>

Pmacs is an Emacs-like editor written entirely in Python. It is designed to
have maximally correct and powerful support for syntax highlighting, to support
various methods of automatically indenting lines, and to be extensible in
python.

Pmacs is available to you under the GNU GPL version 2.

While the general interface of Pmacs is related to Emacs, there was explicitly
no attempt to support all Emacs' functions, Emacs' underlying data structures,
or even all high-level functionality of Emacs. There is not currently a
formalized "public API" for pmacs, although some parts are "more public" than
others. The code is somewhat commented, although currently there is only one
author. Buyer beware!

Requirements:
    1. python 2.4 or higher (this may become 2.5 or higher)
    2. chardet module (for detecting character encodings)
    3. curses module (usually ships with python)
    4. bash

Optional Dependencies:
    * python-crypto  [for aes-encrypted buffers]
    * ispell         [for spell-checking]
    * cvs            [for cvs-based commands]
    * svn            [for svn-based commands]
    * mercurial      [for hg-based commands]

    * perl     [for perl syntax-checking]
    * gcc      [for c compilation/syntax-checking]
    * make     [for c compilation]
    * latex    [for LaTeX compilation]
    * pdflatex [for LaTeX PDF rendering]
    * disinst  [for x86 instruction parsing]

Quick Start Guide:
    1. Download and unpack the pmacs tarball file. After this, there should be
        a directory called "pmacs" somewhere in your filesystem. It doesn't
        matter where you put this. We'll call the full path to this directory
        PMACSDIR; in future steps substitute the actual path for this symbol.

    2. Create a symlink to PMACSDIR/application.py and put it in a directory
        listed in your $PATH (~/bin, /usr/local/bin, and /usr/bin are all good
        candidates). You can name this symlink whatever you want; I use "pmc".

    3. Try editing a file, by typing "pmc FILE" where FILE is the path to the
        file you want to edit.

    4. Edit the file!

        You can type Control-c and then Meta-h to get a list of all the
        available actions and which key(s) perform them. Type Control-x k to get
        out of the "help buffer". If you have used emacs, many (but not all) of
        these key bindings should seem familiar.

    5. Some basic key bindings:

        C-v (or PG_DN)    move down a page
        M-v (or PG_UP)    move up a page
        C-a (or HOME)     move to the beginning of the line
        C-e (or END)      move to the end of the line
        M-<               move to the beginning of the buffer
        M->               move to the end of the buffer
        M-g               goto line number

        C-s               interactive forward search
        C-r               interactive backward search
        M-%               interactive search-and-replace

        C-]               cancel

        C-/ (or C-x u)    undo last change
        M-/ (or C-x r)    redo last undone change

        C-x C-f           open file in a new buffer
        C-x k             close the current buffer

        C-c M-h           open a buffer listing all available key bindings
        C-c M-?           open a buffer listing all available functions
        M-?               get a help with a command by name
        M-h               get information about a key sequence

        C-x C-s           save your changes
        C-x C-c           quit

        NOTE: the notation used corresponds to the following:
            C-x     hold Control and press x.
            M-x     hold Meta and press x.
            C-c j   hold Control and press c, then press j
            C-x C-s hold Control and press x, then hold Control and press s

    6. Other documentation:

        a. MODES: this file describes in more detail how modes function, and
           how to write your own.

        b. other help commands

        c. comments in the source code

Good luck!