Re: Dealing with clash between XAE and other lisp 'plug ins'
Kevin Rodgers <[email protected]> Tue, 1 Jun 2004 09:07:19 -0600
| Newsgroups | gmane.emacs.xae |
|---|---|
| Organization | Information Handling Services, Electronic Systems Development |
| Message-ID | <[email protected]> |
Richard Fieldsend writes:
> I've added:
> (add-to-list 'load-path (expand-file-name
> "XAE_ROOT/lisp"))
> (require 'xae)
>
> to my .emacs file, with the loadpath set correctly for the XAE. XAE
> works correctly, and I'm able to use it correctly. However, when I
> have XAE installed I can't use my Blogging software (blogmax.el).
>
> What I'd like to do is have XAE only load when I choose to edit an XML
> file (which isn't that often at home, but much more frequently at
> work).
>
> I've looked at adding a conditional to the file-load hook, but I can't
> seem to get it to work. I could, considering how infrequently its
> likely to be an issue just set up an alternate version of the .emacs
> file and swap them as appropriate. But I think that the above would be
> a more 'elegant' solution.
Try autoloading xae (see the autoload cookies in xae.el):
(setq auto-mode-alist
(cons '("\\.xml\\'" . xae-mode) auto-mode-alist))
(autoload 'xae-mode "xae"
"Major mode for developing Java applications and applets.")
And for completeness:
(autoload 'xae-apply-stylesheet "xae"
"Applies the stylesheet specified by STYLESHEET-PATH to the document in the current buffer..."
t)
(autoload 'xae-apply-associated-stylesheet "xae"
"Applies the stylesheet specified by the document in the current buffer..."
t)
(autoload 'xae-apply-standard-stylesheet "xae"
"Apply a standard style sheet to the document in the current buffer..."
t)
(autoload 'xae-view-doc-html "xae"
"Display XML document in the current buffer in the default browser..."
t)
(autoload 'xae-view-doc-xml "xae"
"Display XML document in the current buffer in the default browser..."
t)
(autoload 'xae-new-book "xae"
"Creates a buffer containing a new instance of a Docbook..."
t)
(autoload 'xae-new-article "xae"
"Creates a buffer containing a new instance of a Docbook article..."
t)
--
Kevin Rodgers
_______________________________________________
XAE mailing list
[email protected]
http://sunsite.dk/mailman/listinfo/xae