[geeks] quite
Joshua D Boyd
jdboyd at cs.millersville.edu
Wed Aug 7 15:33:05 CDT 2002
On Mon, Aug 05, 2002 at 04:42:56PM -0400, Greg A. Woods wrote:
<snip>
I probably should have cue-ed up all my replies rather then send you a
constant stream. Of well.
First, I got emacs to enter mail-mode when using mutt with this:
(setq auto-mode-alist
(append '(("mutt-" . mail-mode)
)
auto-mode-alist))
Note, unlike the last message I sent, I removed the ^ symbol from the
regex string.
(if (elisp-file-in-loadpath-p "ispell")
(add-hook 'mail-mode-hook
(function (lambda ()
(local-set-key "\C-ci" 'ispell-message))))
Next, the above code you sent me didn't work. I changed
mail-mode-hook to 'mail-mode-hook, then it worked fine. I don't know
if this is a GNU Emacs vs. XEmacs thing or what (I'm in GNU emacs, and
I don't believe I've ever heard you say what you use).
This code just didn't work. I'm not sure what the difference between
it and the above is, w.r.t. how it is supposed to work that is. But,
with the above working fine, I just ignored it.
(if (elisp-file-in-loadpath-p "ispell")
(progn
(define-key mail-mode-map "\C-ci" 'ispell-message)
(define-key mail-mode-map "\M-S" 'ispell-message)))
> As for other text modes, well you don't want to use ispell-message, but
> rather just ispell-buffer. Do this instead:
And I added the rest of that code to my .emacs file, and it all seems
to work nicely to the extent I've tried it out. At this point it is
now going to take me quite a bit of time to sync my home and school
.emacs files though.
> Lots more emacs goodies in the .emacs.el contained in this archive:
>
> ftp://ftp.weird.com/pub/local/dotfiles.tar.gz
I'll get to that file sooner or later. I just spent way more time
than I should have just on the code in the body of the message.
On a side note that you might find interesting. I came across a
language speed benchmark that shows Xemacs elisp being much faster at
matrix multiplication than PHP. I wonder how xemacs elisp would fare
as a CGI scripting language. I have an example of using it for that
around here some where. Actually I also have code around here
somewhere for using emacs as a web server.
--
Joshua D. Boyd
More information about the geeks
mailing list