From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: Organize Your Life In Plain Text! Date: Fri, 08 May 2009 08:32:12 -0700 Message-ID: References: <87zldovowk.fsf@gollum.intra.norang.ca> <87k54svjlk.fsf@gollum.intra.norang.ca> <7EA78739DB6FF044926304E83668BF8222C81834@brewer.cmass.criticalmass.com> <43AA082A-9729-427C-B3C9-0BD1DB970C67@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M2S3k-0000zt-Kg for emacs-orgmode@gnu.org; Fri, 08 May 2009 11:32:24 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M2S3e-0000uL-O6 for emacs-orgmode@gnu.org; Fri, 08 May 2009 11:32:23 -0400 Received: from [199.232.76.173] (port=36392 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M2S3e-0000u8-Jo for emacs-orgmode@gnu.org; Fri, 08 May 2009 11:32:18 -0400 Received: from rv-out-0708.google.com ([209.85.198.248]:61138) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M2S3c-00043a-9F for emacs-orgmode@gnu.org; Fri, 08 May 2009 11:32:17 -0400 Received: by rv-out-0708.google.com with SMTP id f25so1786192rvb.6 for ; Fri, 08 May 2009 08:32:15 -0700 (PDT) In-Reply-To: <43AA082A-9729-427C-B3C9-0BD1DB970C67@gmail.com> (Carsten Dominik's message of "Fri, 8 May 2009 16:08:27 +0200") 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: Carsten Dominik Cc: Bernt Hansen , "emacs-orgmode@gnu.org" Carsten Dominik writes: > On May 8, 2009, at 3:46 AM, Eric Schulte wrote: > >> Good idea, I will certainly follow this repository. >> >> I have a snippet suggestion. >> >> File completion for [[file:... links. I don't know if it's possible, >> but I would find it very helpful > > What is wrong with `C-u C-c C-l' ? > Ah! I wasn't aware of that keybinding. Thanks for the pointer. Overuse of yasnippets has me hitting the tab key whenever I want any kind of completion. I just added the following to my org config which should help. --8<---------------cut here---------------start------------->8--- (defun org-insert-link-maybe () "insert a file link depending on the context" (interactive) (let ((case-fold-search t)) (if (save-excursion (re-search-backward "[[:space:]]") (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--- Thanks -- Eric > > Cheers > > - Carsten > >> >> Cheers -- Eric >> >> Rick Moynihan writes: >> >>> Cool... I've created a project on github for org-mode specific >>> yasnippets: >>> >>> http://github.com/RickMoynihan/yasnippet-org-mode/tree/master >>> >>> I've implemented most of the easy org-mode #+ blocks, though it is by >>> no means complete. I also suspect there might be more we can do to >>> leverage yasnippet... For example It'd be *really* nice to offer >>> completion on command line arguments to ditta... Ideally this could >>> be >>> done through some embedded elisp that ran a ditta command to dump its >>> command line arguments into the snippet... I don't know how much of >>> this is possible. >>> >>> I'd like to focus here on snippets which make sense for everyone, so >>> snippets for personal project outlines etc... are probably best left >>> out in favour of standard org-mode constructs. >>> >>> I've not had chance to test these snippets out yet, so I don't know >>> if >>> they're bound to logical names. If you or the org-mode community >>> come >>> up with any more snippets or suggestions, I'll be happy to merge them >>> into this project. >>> >>> Anyone wishing to add snippets can either fork the project on github >>> and issue a pull request, or simply email the snippet to me with the >>> suggested trigger text. >>> >>> R. >>> >>> 2009/5/7 Jonathan Arkell : >>>> Here are a few of my snippets: >>>> >>>> #name : Properties Folded >>>> #contributor : Jonathan Arkell >>>> # -- >>>> :PROPERTIES: >>>> :VISIBILITY:folded: >>>> :END: >>>> >>>> >>>> >>>> #name : Meeting >>>> #contributor : Jonathan Arkell >>>> # -- >>>> **** Attendees >>>> - $1 >>>> **** General Notes >>>> - $2 >>>> **** Generated Tasks >>>> **** Open Questions >>>> >>>> >>>> >>>> #name : Project Page >>>> #contributor : Jonathan Arkell >>>> # -- >>>> #+FILETAGS: :project: >>>> * $1 :project:$2 >>>> ** Status :$3: >>>> ** Milestones >>>> ** Jira# >>>> ** People >>>> ** Links >>>> *** Files >>>> *** Client Work >>>> *** URLs >>>> ** Tasks >>>> ** Meetings >>>> ** Notes >>>> >>>> >>>> >>>> #name : Source Code Block >>>> #contributor : Jonathan Arkell >>>> # -- >>>> #+BEGIN_SRC $1$> >>>> $0$> >>>> #+END_SRC$> >>>> >>>> >>>> All my other templates are very specific to my job/role. >>>> >>>> -----Original Message----- >>>> From: emacs-orgmode-bounces+jonathana=criticalmass.com@gnu.org >>>> [mailto:emacs-orgmode-bounces+jonathana=criticalmass.com@gnu.org >>>> ] On Behalf Of Bernt Hansen >>>> Sent: May 7, 2009 12:44 PM >>>> To: Rick Moynihan >>>> Cc: emacs-orgmode@gnu.org >>>> Subject: Re: [Orgmode] Organize Your Life In Plain Text! >>>> >>>> Rick Moynihan writes: >>>> >>>>> 2009/5/7 Bernt Hansen : >>>>> Wow, Bernt! This is awesome!!! :-) I'm sure it'll be food for >>>>> thought >>>>> for most of us! >>>> >>>> Thanks :) >>>> >>>>> >>>>> So far I've only skimmed it, but want to take a more indepth look >>>>> at >>>>> porting some of your ideas into my (far more limited) workflow. >>>>> >>>>> My only comment so far is that the keybindings table might be >>>>> better >>>>> sorted by 'Used' frequency, so it's easier to see at a glance which >>>>> keybindings you find most useful. >>>> >>>> Done. >>>> >>>>> I finally managed to look at yasnippet myself yesterday, and >>>>> found it >>>>> to be an awesome edition for any emacs user... Naturally one of >>>>> the >>>>> first things that occured to me was combining it with org-mode. To >>>>> this end, I was wondering whether you have an org-mode snippet >>>>> bundle >>>>> setup. If so, I'd be curious to know what snippets you've defined. >>>> >>>> The only snippet I'm using right now that is org-mode related is the >>>> block snippet I stole from Eric :). I've included it in the >>>> Productivity Tools section >>>> (http://doc.norang.ca/org-mode.html#ProductivityTools) which I'll >>>> work >>>> on in the future. >>>> >>>> I'm still pretty new to yasnippet too but I'm not going back to >>>> working >>>> without it :). >>>> >>>> -Bernt >>>> >>>> >>>> _______________________________________________ >>>> 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 >>>> >>>> The information contained in this message is confidential. It is >>>> intended to be read only by the individual or entity named above >>>> or their designee. If the reader of this message is not the >>>> intended recipient, you are hereby notified that any distribution >>>> of this message, in any form, is strictly prohibited. If you have >>>> received this message in error, please immediately notify the >>>> sender and delete or destroy any copy of this message. >>>> >> >> >> _______________________________________________ >> 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