emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: Eric Schulte <schulte.eric@gmail.com>
Cc: Bernt Hansen <bernt@norang.ca>,
	"emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: Organize Your Life In Plain Text!
Date: Fri, 8 May 2009 18:19:32 +0200	[thread overview]
Message-ID: <C7BB39FB-C9F8-471C-9EAE-F21ABAD6626D@gmail.com> (raw)
In-Reply-To: <m2prejtxtv.fsf@gmail.com>


On May 8, 2009, at 5:32 PM, Eric Schulte wrote:

> Carsten Dominik <carsten.dominik@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---

Neat!

- Carsten

>
> Thanks -- Eric
>
>>
>> Cheers
>>
>> - Carsten
>>
>>>
>>> Cheers -- Eric
>>>
>>> Rick Moynihan <rick.moynihan@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 <jonathana@criticalmass.com>:
>>>>> Here are a few of my snippets:
>>>>>
>>>>> #name : Properties Folded
>>>>> #contributor : Jonathan Arkell <jonnay@jonnay.net>
>>>>> # --
>>>>> :PROPERTIES:
>>>>> :VISIBILITY:folded:
>>>>> :END:
>>>>>
>>>>>
>>>>>
>>>>> #name : Meeting
>>>>> #contributor : Jonathan Arkell <jonnay@jonnay.net>
>>>>> # --
>>>>> **** Attendees
>>>>>    - $1
>>>>> **** General Notes
>>>>>    - $2
>>>>> **** Generated Tasks
>>>>> **** Open Questions
>>>>>
>>>>>
>>>>>
>>>>> #name : Project Page
>>>>> #contributor : Jonathan Arkell <jonnay@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 <jonnay@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.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 <rick.moynihan@gmail.com> writes:
>>>>>
>>>>>> 2009/5/7 Bernt Hansen <bernt@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

  reply	other threads:[~2009-05-08 16:19 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-07 16:49 Organize Your Life In Plain Text! Bernt Hansen
2009-05-07 18:22 ` Rick Moynihan
2009-05-07 18:44   ` Bernt Hansen
     [not found]     ` <4a035da6.0407560a.7391.ffffc270@mx.google.com>
2009-05-07 22:32       ` Bernt Hansen
2009-05-08  2:10         ` Memnon Anon
2009-05-08  3:04           ` Bernt Hansen
2009-05-07 22:50     ` Jonathan Arkell
2009-05-08  1:35       ` Rick Moynihan
2009-05-08  1:46         ` Eric Schulte
2009-05-08 14:08           ` Carsten Dominik
2009-05-08 15:32             ` Eric Schulte
2009-05-08 16:19               ` Carsten Dominik [this message]
2009-05-13  0:22 ` Rick Moynihan
2009-05-13  1:39   ` Bernt Hansen
2009-05-13  1:50   ` Bernt Hansen
2009-05-13  3:58     ` Carsten Dominik
2009-05-13  4:02       ` Bernt Hansen
2009-05-13 10:04         ` Sebastian Rose
2009-05-13 10:15           ` Rick Moynihan
2009-05-14 13:33             ` Eric Schulte
2009-05-14 19:30               ` Sebastian Rose
2009-05-14 19:55                 ` Keith Lancaster
2009-05-14 22:16                   ` Eric Schulte
2009-05-15  6:54                     ` Ian Barton
2009-05-15 22:18                       ` Eric Schulte
2009-05-16  6:56                         ` Ian Barton
2009-05-17 21:49                           ` Eric Schulte
2009-05-18  6:06                             ` Ian Barton
2009-05-18 13:17                               ` Eric Schulte
2009-05-19  9:19                                 ` Ian Barton
2009-05-14 11:36           ` Carsten Dominik
2009-05-14 19:11             ` Bernt Hansen

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=C7BB39FB-C9F8-471C-9EAE-F21ABAD6626D@gmail.com \
    --to=carsten.dominik@gmail.com \
    --cc=bernt@norang.ca \
    --cc=emacs-orgmode@gnu.org \
    --cc=schulte.eric@gmail.com \
    /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).