yuuji@83: Info file: yahtmle, -*-Text-*- yuuji@83: produced by `texinfo-format-buffer' yuuji@83: from file `yahtmle.tex' yuuji@124: using `texinfmt.el' version 2.32 of 19 November 1993. yuuji@124: yuuji@124: yuuji@124: yuuji@83: yuuji@83: yuuji@83: File: yahtmle, Node: Top, Next: Intro, Prev: (dir), Up: (dir) yuuji@83: yuuji@83: * Menu: yuuji@83: yuuji@83: * Intro:: Introduction yuuji@83: * Installation:: Installing yahtml yuuji@83: * Command Invocation:: Using External Commands yuuji@83: * Completion:: Input with Completion yuuji@83: * Jump:: Moving the Cursor yuuji@83: * Changing and Deleting:: Changing and Deleting yuuji@83: * CSS Support:: Style Sheet Support yuuji@83: * Customizations:: List of Customize Variables yuuji@83: * Copying:: Copyright yuuji@83: * Concept Index:: Index yuuji@83: yuuji@83: yuuji@83: File: yahtmle, Node: Intro, Next: Installation, Prev: Top, Up: Top yuuji@83: yuuji@83: Introduction yuuji@83: ************ yuuji@83: yuuji@83: yahtml is a package to support creating HTML documents on Emacsens. Easy yuuji@83: input of elements (tags) by completion, syntax checking with programs like yuuji@83: weblint, and invoking the appropriate browser or image viewer depending on yuuji@83: the cursor position is its main features. yuuji@83: yuuji@83: (This Info is still incomplete) yuuji@83: yuuji@83: yuuji@83: File: yahtmle, Node: Installation, Next: Command Invocation, Prev: Intro, Up: Top yuuji@83: yuuji@83: Installing yahtml yuuji@83: ***************** yuuji@83: * Menu: yuuji@83: yuuji@124: * Setting up yahtml:: yuuji@124: * Setting environments for weblint browsers and image viewers:: yuuji@124: * Setting environment variables for WWW pages:: yuuji@83: yuuji@83: yuuji@83: File: yahtmle, Node: Setting up yahtml, Next: Setting environments for weblint browsers and image viewers, Prev: Installation, Up: Installation yuuji@83: yuuji@83: Setting up yahtml yuuji@83: ================= yuuji@83: yuuji@83: yuuji@83: Add the following to `~/.emacs' yuuji@83: yuuji@83: (setq auto-mode-alist yuuji@83: (cons (cons "\\.html$" 'yahtml-mode) auto-mode-alist)) yuuji@83: (autoload 'yahtml-mode "yahtml" "Yet Another HTML mode" t) yuuji@83: yuuji@83: Next, add to load-path the directory with the yahtml files (`yahtml.el', yuuji@83: `yatexlib.el', `yatexprc.el'). For example, if you put them in yuuji@83: `~/src/emacs/yahtml', yuuji@83: yuuji@83: (setq load-path (cons (expand-file-name "~/src/emacs/yahtml") load-path)) yuuji@83: yuuji@83: is what you add. yuuji@83: yuuji@83: By this, yahtml will be automatically loaded when editing files with .html yuuji@83: extensions. "yahtml" will be displayed on the mode line if no errors yuuji@83: occurred. yuuji@83: yuuji@83: yuuji@83: File: yahtmle, Node: Setting environments for weblint browsers and image viewers, Next: Setting environment variables for WWW pages, Prev: Setting up yahtml, Up: Installation yuuji@83: yuuji@83: Setting environments for weblint, browsers, and image viewers yuuji@83: ============================================================= yuuji@83: yuuji@83: Check the variables for invoking external commands and modify as needed. yuuji@83: Defaults are in parenthesis. yuuji@83: yuuji@83: `yahtml-www-browser' yuuji@83: ... browser command name (netscape) yuuji@83: `yahtml-image-viewer' yuuji@83: ... image viewer command name (xv) yuuji@83: `yahtml-lint-program' yuuji@83: ... syntax check programs command name (jweblint) yuuji@83: `yahtml-kanji-code' yuuji@83: ... kanji code for HTML files yuuji@83: yuuji@83: yuuji@83: File: yahtmle, Node: Setting environment variables for WWW pages, Prev: Setting environments for weblint browsers and image viewers, Up: Installation yuuji@83: yuuji@83: Setting environment variables for WWW pages yuuji@83: =========================================== yuuji@83: yuuji@83: Variables regarding path names for files that will be your home page. yuuji@83: `yahtml-path-url-alist' yuuji@83: ... list of matching path name on file system and URLs yuuji@83: `yahtml-directory-index' yuuji@83: ... index file displayed when none is given in URL. Usually yuuji@124: `index.html' on NCSA type httpd and `Welcome.html' on yuuji@124: CERN types. yuuji@83: yuuji@83: Examples for `yahtml-path-url-alist'. If `/home/yuuji/http/' is yuuji@83: `http://localhost/~yuuji' at home and `/usr/home/yuuji/www/' is yuuji@83: `http://www.keio.ac.jp/~yuuji/' at work, then yuuji@83: yuuji@83: (setq yahtml-path-url-alist yuuji@83: '(("/home/yuuji/http" . "http://localhost/~yuuji") yuuji@83: ("/usr/home/yuuji/www" . "http://www.keio.ac.jp/~yuuji"))) yuuji@83: yuuji@83: Any number of additions can be made to this list. yuuji@83: yuuji@83: yuuji@83: File: yahtmle, Node: Command Invocation, Next: Completion, Prev: Installation, Up: Top yuuji@83: yuuji@83: Invoking external commands yuuji@83: ************************** yuuji@83: yuuji@83: For easy use of commands that are handy when editing HTML files. yuuji@83: `[prefix] t j' yuuji@83: ... Invoke HTML syntax checker (jweblint) yuuji@83: `[prefix] t p' yuuji@83: ... Display current page in browser yuuji@83: `[prefix] t r' yuuji@83: ... Reload current page if browser is already running yuuji@83: yuuji@83: yuuji@83: File: yahtmle, Node: Completion, Next: Jump, Prev: Command Invocation, Up: Top yuuji@83: yuuji@83: Completion Input yuuji@83: **************** yuuji@83: yuuji@83: Completion input of HTML elements is done through the same key strokes as yuuji@83: YaTeX's begin-type completion, section-type completion, large-type yuuji@83: completion, maketitle-type completion, and accent completion. yuuji@83: Corresponding elements in this order is; elements that span multiple yuuji@83: lines, empty elements such as img, tags that start and end in a single yuuji@83: line, elements with no attributes or contents, and special or symbol yuuji@83: entities. yuuji@83: yuuji@83: `[prefix] b (YaTeX begin-type completion)' yuuji@83: ... yuuji@83: