jed-users mailing list

[2004 Date Index] [2004 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: aft.sl 1.0.8 online


On Fri, Jan 09, 2004 at 05:15:18PM +0100, Guido Gonzato wrote:
> Hello everybody,
> 
> for those interested, I've given aft.sl a final touch. Now AFT new-style 
> tables are supported, and integration with LaTeX mode was added. AFT's 
> home page is at http://www.maplefish.com/todd/aft.html
> 
> Get it from my home page, http://profs.sci.univr.it/~gonzato/jed/index.html
> 
[snip]

Just to add a bit of support for what Guido is saying -- I do much
of my writing in reStructuredText
(http://docutils.sourceforge.net/rst.html), which is similar to
AFT, and processing it with Docutils
(http://docutils.sourceforge.net/). Jed is an excellent editor for
editing these plain text formatted text files.

I added one customization to the Text mode which helps with word
wrap in enumerated and itemized lists.  The code is thanks to the
documentation in jed-0.99-16/doc/txt/hooks.txt.

% =================================================================================

%
% Line wrapping for lines that start a bullet list or enumerated list.
% See doc/txt/hooks.txt.
% This code originated from hooks.txt.
%
static define text_mode_wrap_hook ()
{
    variable p;
    push_spot ();
    go_up(1);
    bol ();
    skip_white ();
    p = what_column ();
    if ((looking_at("- ")) or
        (looking_at("* "))
        )
    {
        go_down(1);
        bol ();
        skip_white ();
        p = what_column ();
        bol ();
        trim ();
        whitespace (p + 1);
    }
    else
        if (
            (looking_at("1. ")) or
            (looking_at("2. ")) or
            (looking_at("3. ")) or
            (looking_at("4. ")) or
            (looking_at("5. ")) or
            (looking_at("6. ")) or
            (looking_at("7. ")) or
            (looking_at("8. ")) or
            (looking_at("9. "))
            )
        {
        go_down(1);
        bol ();
        skip_white ();
        p = what_column ();
        bol ();
        trim ();
        whitespace (p + 2);
        }
    pop_spot ();
}

define global_mode_hook (hook_name)
{
    o
    o
    o
    else if (hook_name == "text_mode_hook")
    {
        set_buffer_hook ("wrap_hook", &text_mode_wrap_hook);
    }
    o
    o
    o
}

% =================================================================================

Dave

-- 
Dave Kuhlman
dkuhlman@xxxxxxxx
http://www.rexx.com/~dkuhlman

--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.


[2004 date index] [2004 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]