21 Mar 2012 21:16
How do I link between multiple projects
Emit Sorrels <emit.sorrels <at> gmail.com>
2012-03-21 20:16:00 GMT
2012-03-21 20:16:00 GMT
I have the following set up in .emacs
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(require 'muse-mode)
(require 'muse-html)
(require 'muse-project)
(require 'muse-publish)
(setq muse-project-alist
'(("Foo"
("~/Foo" :default "index")
(:base "html" :path "/var/www/Foo"))
("Bar"
("~/Bar")
(:base "html" :path "/var/www/Bar"))))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
I can work on Foo and Bar separately and muse mode works very well.
Now I want to have some links between the two projects... I'm not sure but it looks like I want something like the Bar#EntryName form of a interproject link in the emacs wiki mode.
The following works:
In project Foo I have
[[../Bar/EntryName.html][EntryName]]
However I don't like it hard linking to an html file. Plus, I can't press enter on the link in emacs to go straight to the .muse file.
The following does not work:
[[../Bar/EntryName][EntryName]]
I can follow the link in emacs to edit the .muse file, but the generated html file in project Foo has a link to ../Bar/EntryName without the .html suffix.
What is the correct way to handle this?
<div>
<div>I have the following set up in .emacs</div>
<div>
<br class="Apple-interchange-newline">;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;</div>
<div><br></div>
<div>(require 'muse-mode)</div>
<div>(require 'muse-html)</div>
<div>(require 'muse-project)</div>
<div>(require 'muse-publish)</div>
<div><br></div>
<div>
<div>(setq muse-project-alist</div>
<div> '(("Foo"</div>
<div> ("~/Foo" :default "index")</div>
<div> (:base "html" :path "/var/www/Foo"))</div>
<div><br></div>
<div> ("Bar"</div>
<div> ("~/Bar")</div>
<div> (:base "html" :path "/var/www/Bar"))))</div>
<div><br></div>
</div>
<div>;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;</div>
<div><br></div>
<div><br></div>
<div>I can work on Foo and Bar separately and muse mode works very well.</div>
<div>Now I want to have some links between the two projects... I'm not sure but it looks like I want something like the Bar#EntryName form of a interproject link in the emacs wiki mode.</div>
<div><br></div>
<div>The following works:</div>
<div>In project Foo I have</div>
<div>[[../Bar/EntryName.html][EntryName]]</div>
<div>However I don't like it hard linking to an html file. Plus, I can't press enter on the link in emacs to go straight to the .muse file.</div>
<div><br></div>
<div>The following does not work:</div>
<div><div>[[../Bar/EntryName][EntryName]]</div></div>
<div>I can follow the link in emacs to edit the .muse file, but the generated html file in project Foo has a link to ../Bar/EntryName without the .html suffix.</div>
<div><br></div>
<div>What is the correct way to handle this?</div>
</div>
RSS Feed