From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: Keeping a wiki with org-mode Date: Fri, 12 Jun 2009 15:41:19 -0700 Message-ID: References: <1e5bcefd0906121432hfc9efc1sf09710568c6c74d0@mail.gmail.com> <20090612215217.GN11964@thinkpad.adamsinfoserv.com> <1e5bcefd0906121509q6a7b3f25vd2cd684716cc94b8@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MFFRC-0002LK-8l for emacs-orgmode@gnu.org; Fri, 12 Jun 2009 18:41:30 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MFFR6-0002Kz-SP for emacs-orgmode@gnu.org; Fri, 12 Jun 2009 18:41:30 -0400 Received: from [199.232.76.173] (port=38558 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MFFR6-0002Kw-P6 for emacs-orgmode@gnu.org; Fri, 12 Jun 2009 18:41:24 -0400 Received: from wf-out-1314.google.com ([209.85.200.175]:29864) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MFFR6-0004Pz-5N for emacs-orgmode@gnu.org; Fri, 12 Jun 2009 18:41:24 -0400 Received: by wf-out-1314.google.com with SMTP id 23so835160wfg.24 for ; Fri, 12 Jun 2009 15:41:23 -0700 (PDT) In-Reply-To: <1e5bcefd0906121509q6a7b3f25vd2cd684716cc94b8@mail.gmail.com> (Marcelo de Moraes Serpa's message of "Fri, 12 Jun 2009 17:09:07 -0500") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Marcelo de Moraes Serpa Cc: emacs-orgmode@gnu.org 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) (for= ward-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 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= 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 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0RLAdams@AdamsInfoServ.com >> >> PGP Key ID: =C2=A0 =C2=A0 0x1160DCB3 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = http://www.adamsinfoserv.com/ >> >> Fingerprint: =C2=A0 =C2=A01723 D8CA 4280 1EC9 557F =C2=A066E8 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