I think the use of the work wiki here is causing confusion.
I don't think you are talking about actually running a wiki based on
org-mode formatted files (to which worg would be applicable).
However rather than the behavior you are suggesting (automatically
transforming CamelCase words into links in org-mode buffers) it should
be sufficient to use the `org-insert-link' function, or if you would
prefer a different syntax you could try something like the following
which will prompt you for a file name after you type "file" and then hit
the [TAB] key.
--8<---------------cut here---------------start------------->8---
;; expand files on tab
(defun org-insert-link-maybe ()
"insert a file link depending on the context"
(interactive)
(let ((case-fold-search t))
(if (save-excursion (when (re-search-backward "[[:space:]]" nil t)
(forward-char 1) (looking-at "\\[?\\[?file:?")))
(progn (replace-match "") (org-insert-link '(4)) t)
nil)))
(add-hook 'org-tab-first-hook 'org-insert-link-maybe)
--8<---------------cut here---------------end--------------->8---
Cheers -- Eric
Marcelo de Moraes Serpa <[email protected]> writes:
> Hmm, I thought Worg was an approach on using org (in a distributed
> manner, with the goal of contributing to the org-mode project itself)
> instead of an extension to provide wiki-enhancements to org. Or am I
> wrong?
>
> Thanks,
>
> Marcelo.
>
> On Fri, Jun 12, 2009 at 4:52 PM, Russell Adams<[email protected]>
> wrote:
>> That is what the Worg project does, its linked to off the main
>> Org-mode page.
>>
>> On Fri, Jun 12, 2009 at 04:32:36PM -0500, Marcelo de Moraes Serpa wrote:
>>> Hello,
>>>
>>> I wonder what is the best way to implement a wiki with org? I know you
>>> can hyperlink to anything, but what I was thinking was something
>>> automatic, like what WikiDPad does or Tomboy -- like having wikiwords
>>> (CamelCase) automatically linked as you type to a filename in the
>>> system (a specific directory you specify for the wiki). If it is not
>>> possible, it could be a nice addition for a future org version.
>>>
>>> Thanks,
>>>
>>> Marcelo.
>>>
>>>
>>> _______________________________________________
>>> Emacs-orgmode mailing list
>>> Remember: use `Reply All' to send replies to the list.
>>> [email protected]
>>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>>>
>>
>>
>> ------------------------------------------------------------------
>> Russell Adams [email protected]
>>
>> PGP Key ID: 0x1160DCB3 http://www.adamsinfoserv.com/
>>
>> Fingerprint: 1723 D8CA 4280 1EC9 557F 66E8 1154 E018 1160 DCB3
>>
>>
>> _______________________________________________
>> Emacs-orgmode mailing list
>> Remember: use `Reply All' to send replies to the list.
>> [email protected]
>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>>
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> [email protected]
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
[email protected]
http://lists.gnu.org/mailman/listinfo/emacs-orgmode