On 03/27/2013 09:12 PM, Eric M. Ludlam wrote:
> On 03/26/2013 09:31 AM, Joe Steeve wrote:
>> Hello all,
>> How do I teach EDE to load project specific templates? I saw a mention
>> about this in the SRecode manual:
>> "Templates can be compiled via a project system, such as EDE. EDE
>> loaded templates will get a PROJECT set automatically."
>> But no more information.
> Hi Joe,
> I think I may have written that doc before implementing the feature.
> For now, you should just create new template files in your ~/.srecode
> directory, or add new directories to srecode-map-load-path. In those
> templates hard-code the directory to your project.
> I still think this would be a useful feature, but for now I'll remove
> this hit from the doc and see if I can't get a test on the current behavior.
In re-reading this I realize I wasn't very clear.
To hard-code a project, you might have a file:
an in there, a line such as:
set project "/path/to/my/project"
and templates in there will have a higher priority that templates that
come with SRecode. They will also have a lower priority than other
templates in your ~/.srecode directory. The idea is that templates in a
project should still be overridden by a users' preference.
If this final assumption is wrong, then perhaps we can update the
automatic priority assignment.