emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org remember anything
@ 2008-01-25 15:42 Hugo Schmitt
  0 siblings, 0 replies; only message in thread
From: Hugo Schmitt @ 2008-01-25 15:42 UTC (permalink / raw)
  To: emacs-orgmode


[-- 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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-01-25 15:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-25 15:42 org remember anything Hugo Schmitt

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).