[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Mozex and Emacs
From: |
Gary Lawrence Murphy |
Subject: |
Re: Mozex and Emacs |
Date: |
Mon, 07 Mar 2005 15:20:48 -0500 |
User-agent: |
Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux) |
Mostly because I had to write these down to transfer them to my
laptop anyway, but hey, why not share? :)
The config options I find useful for using the Mozex extension with
Emacs are as follows:
Mailer: /home/garym/bin/email %A %S
Text Areas: /usr/bin/emacsclient %t
Emacsclient you know, but the email script is as follows:
#!/bin/sh
# wrapper for mozex: use email <addresses> <subject>
exec emacsclient -e "(compose-mail \"$1\" \"$2\")" > /dev/null
in addition, I have placed the following function on a function-key
so I can quickly promote a mozex buffer for use with PSGML mode,
although I haven't figure out how to get it to start at a DIV
level instead of insisting on <HTML> as the overall tag (do I need
to work from a subset of the XHTML DTD?)
(defun xhtml-ced ()
"begin editing XHTML document"
(interactive)
(html-mode)
(sgml-load-dtd (expand-file-name "~/dev/xhtml.ced")))
(global-set-key [(control f4)] 'xhtml-ced)
I also tried to automate this with
(setq auto-mode-alist
(append '(("^mozex\\.textarea\\..*\\.txt" . html-mode))
auto-mode-alist))
but it didn't work :(
--
Gary Lawrence Murphy <garym@teledyn.com> ==============================
www.teledyn.com - blog.teledyn.com - irish.teledyn.com - sbp.teledyn.com
====================== The present moment is a powerful goddess (Goethe)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: Mozex and Emacs,
Gary Lawrence Murphy <=