emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Richard Riley <rileyrgdev@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Using org-learn and babel to learn foreign words
Date: Tue, 27 Oct 2009 13:58:36 +0100	[thread overview]
Message-ID: <hc6qpt$23a$1@ger.gmane.org> (raw)
In-Reply-To: hc6nf8$mve$1@ger.gmane.org


A small follow up which includes the auto schedule of the new org item:-

,----
| (defvar rgr/learn-first-lesson 1) ; when to schedule first reminder
| 
| (defun rgr/context-babel( &optional usedef )
|   (interactive)
|   (let* ((default (region-or-word-at-point)))
|     (setq default (read-string (format "Translate \"%s\" :" default) nil nil default))
|     (when (length default)
|       (setq rgr/trans-word (babel default nil usedef))
|       (setq rgr/orig-word default)
|       (if current-prefix-arg 
| 	  (progn
| 	    (org-remember nil ?v)
| 	    (org-schedule nil (time-add (current-time) (days-to-time rgr/learn-first-lesson)))))
|       (rgr/notify rgr/trans-word)
|       (message "%s" rgr/trans-word))))
`----

Any other updates will just silently make their way into my published
files.

  reply	other threads:[~2009-10-27 12:59 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-27 12:01 Using org-learn and babel to learn foreign words Richard Riley
2009-10-27 12:58 ` Richard Riley [this message]
2009-10-30 14:32 ` Richard Riley

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='hc6qpt$23a$1@ger.gmane.org' \
    --to=rileyrgdev@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).