Carsten Dominik <carsten.domi...@gmail.com> 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 <rick.moyni...@gmail.com> 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 <jonath...@criticalmass.com>: >>>> Here are a few of my snippets: >>>> >>>> #name : Properties Folded >>>> #contributor : Jonathan Arkell <jon...@jonnay.net> >>>> # -- >>>> :PROPERTIES: >>>> :VISIBILITY:folded: >>>> :END: >>>> >>>> >>>> >>>> #name : Meeting >>>> #contributor : Jonathan Arkell <jon...@jonnay.net> >>>> # -- >>>> **** Attendees >>>> - $1 >>>> **** General Notes >>>> - $2 >>>> **** Generated Tasks >>>> **** Open Questions >>>> >>>> >>>> >>>> #name : Project Page >>>> #contributor : Jonathan Arkell <jon...@jonnay.net> >>>> # -- >>>> #+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 <jon...@jonnay.net> >>>> # -- >>>> #+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....@gnu.org >>>> [mailto:emacs-orgmode-bounces+jonathana=criticalmass....@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 <rick.moyni...@gmail.com> writes: >>>> >>>>> 2009/5/7 Bernt Hansen <be...@norang.ca>: >>>>> 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 _______________________________________________ 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