[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/gnorb 27d08ef 022/449: README.org: Reorganize README
From: |
Stefan Monnier |
Subject: |
[elpa] externals/gnorb 27d08ef 022/449: README.org: Reorganize README |
Date: |
Fri, 27 Nov 2020 23:15:00 -0500 (EST) |
branch: externals/gnorb
commit 27d08ef50ee0bf896487ac472c80d20e7fd2f735
Author: Eric Abrahamsen <eric@ericabrahamsen.net>
Commit: Eric Abrahamsen <eric@ericabrahamsen.net>
README.org: Reorganize README
Reorganize the file, and make suggested keybindings easier to find.
---
README.org | 50 +++++++++++++++++++++++++++++++++++++++++++-------
lisp/gnorb-bbdb.el | 8 --------
lisp/gnorb-gnus.el | 14 --------------
lisp/gnorb-org.el | 8 --------
4 files changed, 43 insertions(+), 37 deletions(-)
diff --git a/README.org b/README.org
index d109d05..1f5b145 100644
--- a/README.org
+++ b/README.org
@@ -25,19 +25,32 @@ Gnus, Org, and BBDB. I'll try to make it work with the most
recent
stable releases of those packages, but I'm not promising anything.
** Gnorb-BBDB
-*** gnorb-bbdb-tag-agenda
+*** Functions
+**** gnorb-bbdb-tag-agenda
Give BBDB records an org-tag field (customizable), then call this
function on the current records(s) to open an Org agenda tags search
using those tags.
-*** gnorb-bbdb-mail-search
+**** gnorb-bbdb-mail-search
Search for all mail messages from the record(s) displayed. Currently
supports the notmuch, mairix, and namazu search backends; set
`gnorb-bbdb-mail-search-backend' to one of those symbol values.
+**** gnorb-bbdb-cite-contact
+Prompt for a BBDB record and insert a string of the type "Bob Smith
+<bob@smith.com>".
+*** Suggested Keybindings
+#+BEGIN_SRC emacs-lisp
+ (eval-after-load "gnorb-bbdb"
+ '(progn
+ (define-key bbdb-mode-map (kbd "O") 'gnorb-bbdb-tag-agenda)
+ (define-key bbdb-mode-map (kbd "S") 'gnorb-bbdb-mail-search)
+ (global-set-key (kbd "C-c C") 'gnorb-bbdb-cite-contact)))
+#+END_SRC
** Gnorb-Org
-*** gnorb-org-contact-link
+*** Functions
+**** gnorb-org-contact-link
Prompt for a BBDB record and insert a link to that record at
point.
-*** gnorb-org-handle-mail(-agenda)
+**** gnorb-org-handle-mail(-agenda)
Call these functions on a headline containing links to Gnus messages,
or mailto links, or BBDB links. Either start a reply to the linked
message, or a new message to the linked addresses, or both (just try
@@ -47,7 +60,7 @@ prompt to mark the TODO as done.
This works best with a matching capture template: if the template
stores a link to the message under point within the headline text,
this command will reply to that message in a DWIM style.
-*** gnorb-org-email-subtree
+**** gnorb-org-email-subtree
Call on a Org subtree to export the subtree as either text or a file,
then compose a message with the text in the message body, or the file
attached to the message.
@@ -55,14 +68,37 @@ attached to the message.
There's a little overlap with org-mime, but this function allows for
attaching files, and does not compose an HTML message. I may look into
integrating it a bit with org-mime later.
+*** Suggested Keybindings
+#+BEGIN_SRC emacs-lisp
+ (eval-after-load "gnorb-org"
+ '(progn
+ (org-defkey org-mode-map (kbd "C-c C") 'gnorb-org-contact-link)
+ (org-defkey org-mode-map (kbd "C-c H") 'gnorb-org-handle-mail)
+ (org-defkey org-mode-map (kbd "C-c E") 'gnorb-org-email-subtree)
+ (eval-after-load "org-agenda"
+ '(org-defkey org-agenda-mode-map (kbd "H")
'gnorb-org-handle-mail-agenda))))
+#+END_SRC
** Gnorb-Gnus
-*** gnorb-gnus-article-org-attach
+*** Functions
+**** gnorb-gnus-article-org-attach
When called on an email with attached files, prompt for an Org heading
and attach the files to that heading using org-attach.
-*** Using attach with org capture
+**** Using attach with org capture
Set the new :gnus-attachments key to "t" in a capture template that
you use on mail messages, and all the attachments on the message will
be attached to the newly-captured heading.
+*** Suggested Keybindings
+#+BEGIN_SRC emacs-lisp
+ (eval-after-load "gnus-art"
+ '(progn
+ (gnus-define-keys (gnus-summary-mime-map "K" gnus-summary-mode-map)
+ "a" gnorb-gnus-article-org-attach)
+ (push '("attach to org heading" . gnorb-gnus-mime-org-attach)
+ gnus-mime-action-alist)
+ ;; this doesn't actually work
+ (push '(gnorb-gnus-mime-org-attach "A" "Attach to Org heading")
+ gnus-mime-button-commands)))
+#+END_SRC
** Wishlist/TODO
- Support adding X-Org-Id headers to Gnus messages, which point at
relevant Org headings (possibly not really useful).
diff --git a/lisp/gnorb-bbdb.el b/lisp/gnorb-bbdb.el
index e23dd38..ab728f4 100644
--- a/lisp/gnorb-bbdb.el
+++ b/lisp/gnorb-bbdb.el
@@ -127,13 +127,5 @@ a prefix arg and \"*\", the prefix arg must come first."
(insert mail-string)
mail-string)))
-;; (eval-after-load "gnorb-bbdb"
-;; '(progn
-;; (define-key bbdb-mode-map (kbd "O") 'gnorb-bbdb-tag-agenda)
-;; (define-key bbdb-mode-map (kbd "S") 'gnorb-bbdb-mail-search)
-;; (global-set-key (kbd "C-c C") 'gnorb-bbdb-cite-contact)))
-
-
-
(provide 'gnorb-bbdb)
;;; gnorb-bbdb.el ends here
diff --git a/lisp/gnorb-gnus.el b/lisp/gnorb-gnus.el
index 2839e46..b79d238 100644
--- a/lisp/gnorb-gnus.el
+++ b/lisp/gnorb-gnus.el
@@ -131,19 +131,5 @@ save them into `gnorb-tmp-dir'."
(add-hook 'org-capture-prepare-finalize-hook
'gnorb-gnus-capture-abort-cleanup)
-
-;;; Something is still slightly wrong about the following -- it
-;;; doesn't provide "a" as a key on the button itself, which is what I
-;;; was hoping.
-
-;; (gnus-define-keys (gnus-summary-mime-map "K" gnus-summary-mode-map)
-;; "a" gnorb-gnus-article-org-attach)
-
-;; (push '("attach to org heading" . gnorb-gnus-mime-org-attach)
-;; gnus-mime-action-alist)
-
-;; (push '(gnorb-gnus-mime-org-attach "a" "Attach to Org heading")
-;; gnus-mime-button-commands)
-
(provide 'gnorb-gnus)
;;; gnorb-gnus.el ends here
diff --git a/lisp/gnorb-org.el b/lisp/gnorb-org.el
index 8636b42..2e6e319 100644
--- a/lisp/gnorb-org.el
+++ b/lisp/gnorb-org.el
@@ -206,13 +206,5 @@ default set of parameters."
nil "attachment"))
(message-goto-to)))
-;; (eval-after-load "gnorb-org"
-;; '(progn
-;; (global-set-key (kbd "C-c C") 'gnorb-bbdb-cite-contact)
-;; (org-defkey org-mode-map (kbd "C-c H") 'gnorb-org-handle-mail)
-;; (org-defkey org-mode-map (kbd "C-c E") 'gnorb-org-email-subtree))
-;; (eval-after-load 'org-agenda
-;; '(org-defkey org-agenda-mode-map (kbd "H") 'gnorb-org-handle-mail-agenda))
-
(provide 'gnorb-org)
;;; gnorb-org.el ends here
- [elpa] externals/gnorb afd587b 003/449: Basic project structure., (continued)
- [elpa] externals/gnorb afd587b 003/449: Basic project structure., Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 82c06bc 001/449: Initial commit, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb ba4ec1b 004/449: Add customization skeleton., Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 1b037b7 006/449: gnorb-utils.el: Common utility file., Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb d090df9 007/449: gnorb-bbdb.el: New function gnorb-bbdb-mail-search, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb cc208a0 010/449: gnorb-bbdb.el: (gnorb-bbdb-mail-search), Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 869940a 015/449: README.org: Change file format to Org mode, expand docs, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 3429f3b 009/449: gnorb-org.el: (gnorb-org-contact-link), Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb b7dce0b 016/449: gnorb-utils.el: Require the cl library., Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb d79617f 019/449: gnorb-org.el: Email current subtree as exported text or file, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 27d08ef 022/449: README.org: Reorganize README,
Stefan Monnier <=
- [elpa] externals/gnorb 3edf1c9 025/449: gnorb-utils.el: gnorb-prompt-for-bbdb-record, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 32ecc09 026/449: gnorb-org.el: gnorb-org-handle-mail, gnorb-org-email-subtree, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 123b521 031/449: gnorb-org.el: bugfix gnorb-org-restore-after-send, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb a9c7410 032/449: gnorb-gnus.el: bugfix gnorb-gnus-attach-part, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 5adcc84 008/449: gnorb-utils: (gnorb-prompt-for-bbdb-record), Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb bedce9d 012/449: gnorb-gnus.el: (gnorb-gnus(article|mime)-org-attach), Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb d28a099 005/449: gnorb-bbdb.el: New function gnorb-bbdb-tag-agenda, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 63ac8f6 011/449: gnorb-org.el: (gnorb-org-handle-mail, gnorb-org-handle-mail-agenda), Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb c2b1a3a 013/449: Docstring for gnorb-org-contact-link, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb d4987a7 014/449: gnorb-utils.el: More likely requires for Org libraries, Stefan Monnier, 2020/11/27