From: "Eric Schulte" <schulte.eric@gmail.com>
To: Marcelo de Moraes Serpa <celoserpa@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Keeping a wiki with org-mode
Date: Fri, 12 Jun 2009 15:41:19 -0700 [thread overview]
Message-ID: <m2prd9yt0w.fsf@gmail.com> (raw)
In-Reply-To: <1e5bcefd0906121509q6a7b3f25vd2cd684716cc94b8@mail.gmail.com> (Marcelo de Moraes Serpa's message of "Fri, 12 Jun 2009 17:09:07 -0500")
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 <celoserpa@gmail.com> 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<RLAdams@adamsinfoserv.com> 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.
>>> Emacs-orgmode@gnu.org
>>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>>>
>>
>>
>> ------------------------------------------------------------------
>> Russell Adams RLAdams@AdamsInfoServ.com
>>
>> 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.
>> Emacs-orgmode@gnu.org
>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>>
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
next prev parent reply other threads:[~2009-06-12 22:41 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-12 21:32 Keeping a wiki with org-mode Marcelo de Moraes Serpa
2009-06-12 21:52 ` Russell Adams
2009-06-12 22:09 ` Marcelo de Moraes Serpa
2009-06-12 22:35 ` Russell Adams
2009-06-12 22:41 ` Eric Schulte [this message]
2009-06-12 23:26 ` Sebastian Rose
2009-06-12 23:30 ` Marcelo de Moraes Serpa
2009-06-13 0:03 ` Dan Davison
2009-06-14 6:17 ` Carsten Dominik
2009-06-13 19:56 ` Matthew Lundin
2009-06-13 20:17 ` Sebastian Rose
2009-06-14 6:13 ` Carsten Dominik
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2prd9yt0w.fsf@gmail.com \
--to=schulte.eric@gmail.com \
--cc=celoserpa@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).