emacs-wiki-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [emacs-wiki-discuss] Re: Autoloads


From: Phillip Lord
Subject: RE: [emacs-wiki-discuss] Re: Autoloads
Date: Thu, 24 Nov 2005 13:10:06 -0000

Trent Buck wrote:

>>> However, since Muse uses macros for style definitions, you would
>>> still have to load it at start-up time as long as you want to do
>>> the style definitions at that point. 
>>> 
>>> In my opinion, this is yet an argument for my suggestion in
>>> http://article.gmane.org/gmane.emacs.wiki.general/4301
>> 
>> You could pull the macros out into a file, the way that
>> cl does. Then, an (eval-when-compile) would make dependant files
>> work. 
>> 
>> Not that I disagree with your point. I think that your idea
>> is entirely the way to go.
> 
> What's wrong with AUTOLOAD and EVAL-AFTER-LOAD?  For example:
> 
> ,----[ http://twb.ath.cx/notes/dotemacs.txt ]
>> (when (locate-library "muse")
>>   (autoload 'muse-mode "muse" nil t)
>>   (add-to-list 'auto-mode-alist '("\\.muse\\'" . muse-mode))
>> 
>>   ;;; Treat <src> tags like <example> tags.
>>   (eval-after-load "muse-colors"
>>     '(add-to-list 'muse-colors-tags
>>                   '("src" t nil muse-colors-example-tag)))) `----

This is the way I do it. The general point that Bjorn was making though, 
in his original post was that it would be great to be able to store
style information for a specific project with the rest of the source
files for that project. Which I would agree with. 

Cheers

Phil




reply via email to

[Prev in Thread] Current Thread [Next in Thread]