From: "Hugo Schmitt" <hugows@gmail.com>
To: emacs-orgmode@gnu.org
Subject: org remember anything
Date: Fri, 25 Jan 2008 12:42:43 -0300 [thread overview]
Message-ID: <2f1c7d020801250742m6e92ae15k3400bb973c3a184d@mail.gmail.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 898 bytes --]
Hi.
So, just wrote this and maybe there are others users of Anything.el around:
Just update your anything-sources variable to include anything-org-remember.
Maybe this will get more useful for people that have 10+ templates and not
enough meaninful keys.
- Hugo
Ps: if there is a better way of achieving `list-of-fst` please tell me. I
find it a little odd...
---
(defun list-of-nth (list pos)
(mapcar (lambda (x) (nth pos x)) list))
(defun list-of-fst (list) (list-of-nth list 0))
(setq anything-org-remember
'((name . "Org Remember")
(candidates . (lambda () (list-of-fst org-remember-templates)))
(action . (lambda (name)
(let* ((orig-template org-remember-templates)
(org-remember-templates
(list (assoc name orig-template))))
(call-interactively 'org-remember))))))
[-- Attachment #1.2: Type: text/html, Size: 1445 bytes --]
[-- Attachment #2: Type: text/plain, Size: 204 bytes --]
_______________________________________________
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:[~2008-01-25 15:42 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=2f1c7d020801250742m6e92ae15k3400bb973c3a184d@mail.gmail.com \
--to=hugows@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).