Configuring the aXe editor
The aXe editor can be configured through entries in the
.Xresources file. This includes the possibility of binding
various actions to single key strokes, which is particularly valuable
on the tph16, where aXe crashes when invoking something from the
file menu.
These actions can either be simple editing commands or more complex
commands started in a mini-shell.
In the sample .Xresources file (download by shift+mouse-click)
the key bindings are (re)defined as follows:
- Backspace deletes the previous character or the selected text
- The extra Delete key deletes the following character
- The Insert key inserts a file
- Home and End moves to beginning and end of the line
- Page-Up and Page-Down are defined
- The Escape key clears the minibuffer and lets you enter commands there. If
already there, it brings you back to the editing area.
- The KEY PAD is utilized as follows:
- Enter: saves the file
- Decimal: closes the editor (with prompts if file has not yet been saved)
- Plus: invokes LaTeX (if $WF is defined, see below)
- Minus: invokes plain TeX (if $WF is defined, see below)
- Multiply: undo
- Divide: undo by reloading the file
- 0: moves to the current position and highlights the current line
- 1: moves to the line entered subsequently
- 2: searches for the next occurence of a selected text
- 3: searches for the previous occurence of a selected text
- 4: finds the matching parenthesis and highlights the text in
between, if the cursor (caret) is just behind one parenthesis
- The function keys:
- 1-4: like 1-4 of the key pad
- 5: starts xdvi (if $WF is defined, see below)
- 6: starts dvips (if $WF is defined, see below)
- 7: starts ghostview (if $WF is defined, see below)
The commands for
TeXing and previewing are useful, if aXe is started
through the following function, which one can define
in one's .bashrc file
ted() { OLD_WF="$WF"; if [ -n "$*" ]; then WF="$PWD/$*"; else WF="$OLD_WF"; fi
export WF;
( sleep 1; axe -noserver "$WF.tex" & ) }
"ted filename" defines $WF=filename and starts axe on the file "$WF.tex" (if no filename is given the last one used is taken).
Anton Rebhan <rebhana@tph.tuwien.ac.at>
Page
last modified: Feb. 26 , 1996