[Back to Top]
predoc-mode (WYSIWYG on Emacs)
* Abstract
predoc-mode is an WYSIWYG editting mode for Emacs.
* Environment
- GNU Emacs 22.0.90 or later
- Linux You have to get from CVS repositry and build it.
- Windows Meadow 3.00 or later
- MacOS X Carbon Emacs January 2007 Edition or later
- ImageMagick 6.0.0 or later
- If you use img tag, `ImageMagick' is necessary by predoc-mode.el
* Download
- Please download predoc-mode via sourceforge.jp.
* Install
1. Copying predoc-mode.el to load-path of Emacs.
e.g) ~/emacs/predoc-mode.el
2. Adding a line as follows to ~/.emacs
e.g) (load "~/emacs/predoc-mode.el")
3. Checking after install.
When you open a html file which includes <pre> tag at first line,
predoc-mode.el detects it as Predoc format.
If the mode-line indicates `Predoc' mode, the installation was succeed.
* Key bindings
- Characters at cursor position can be modified with these keys.
. "C-c h" ... inserting a tag.
. "C-c i" ... inserting img tag.
. "&" ... supporting entity input.
. "C-c C-c" ... (1)toggle openning tag status and closeing tag status.
^
|
"C-c C-c"
|
v
* You can toggle img tag, a tag and entity by "C-c C-c" key.
. "C-c C-c" ... (2)Converting an URL of image file into `img' tag.
A relative path of image file is also OK.
|
"C-c C-c"
|
v
. "C-c C-c" ... (3)Converting an URL into `a` tag.
the format is follows.
URL anchor-string
|
"C-c C-c"
|
v
. "C-c l" ... Inserting img tags from current directory.
predoc-mode finds all image files recursively.
follows is an example.
* customize variables
- `predoc-insert-image-size'
default value: 100 dots
description: image's width dots by "C-c l" key.
- `predoc-convert-program'
default value: "/usr/bin/convert"
description: full-path of ImageMagick's 'convert' program.
[Back to Top]