From: khi at users.sourceforge.jp (khi at users.sourceforge.jp)
Subject: [Howm-eng 44] GPG with EasyPG (Re: Newbie...)
Date: Mon, 07 Apr 2008 21:56:16 +0900 [thread overview]
Message-ID: <m3ej9hlt73.wl@id.domain> (raw)
In-Reply-To: <200804060000.m3600Obl007694@localhost.localdomain>
At Sun, 6 Apr 2008 02:00:26 +0200,
Xavier Maillard wrote:
> Well in principle, it is pretty simple to achieve encryption. I
> am used to EPG (part of GNU Emacs). I used local-vars to force
> automatic encryption of a set of org-mode files.
Oh! EasyPG runs well with howm!
(1) Run gpg-agent.
(2) Put *.gpg into ~/howm/.
(3) M-x epa-file-enable
Then howm can search *.gpg seamlessly.
Below is a quick hack to use external grep and EPG at the same time.
* All files in ~/howm/ are searched by the external grep command.
* All files in ~/gpg/ are searched by elisp so that EPG is applied.
This is necessary because searching all files with elisp is too slow
for me. Test version (howm-test071107) is required for this code.
http://howm.sourceforge.jp/a/howm-test.tar.gz
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(setq howm-view-use-grep t)
(epa-file-enable)
;; clone of *:dir except for the use of fake-grep.
(defun howm-make-folder:edir (dir)
(cons ':edir dir))
(defun howm-folder-items:edir (edir &optional recursive-p)
(howm-folder-items:dir (cdr edir) recursive-p))
(defun howm-folder-grep-internal:edir (edir pattern &optional fixed-p)
(let ((howm-view-use-grep nil))
(howm-folder-grep-internal:dir (cdr edir) pattern fixed-p)))
(defun howm-folder-get-page-create:edir (edir page-name)
(howm-folder-get-page-create:dir (cdr edir) page-name))
(defun howm-folder-territory-p:edir (edir name)
(howm-folder-territory-p:dir (cdr edir) name))
;; check all howm-search-path.
(defun howm-list-all ()
(interactive)
(howm-set-command 'howm-list-all)
; (howm-view-directory (car (howm-search-path)) t)
(howm-view-summary "" (mapcan (lambda (p) (howm-folder-items p t))
(howm-search-path)))
(howm-list-normalize)
;; clean me [2004-07-11]
(cond ((howm-list-title-p) t) ;; already done in (howm-list-normalize)
(howm-list-all-title (howm-list-title-internal))))
(howm-toggle-search-other-dir 1)
(setq howm-search-path (list (howm-make-folder:edir "~/gpg")))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
next prev parent reply other threads:[~2008-04-07 12:56 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-05 0:00 [Howm-eng 38] Newbie xma
2008-04-05 13:35 ` [Howm-eng 39] Newbie khi
2008-04-06 0:00 ` [Howm-eng 42] " xma
2008-04-07 12:56 ` khi [this message]
2008-04-08 0:00 ` [Howm-eng 48] Re: GPG with EasyPG (Re: Newbie...) xma
2008-04-07 13:03 ` [Howm-eng 45] Re: Newbie khi
2008-04-08 0:00 ` [Howm-eng 47] " xma
2008-04-09 13:16 ` [Howm-eng 55] " khi
2008-04-08 6:29 ` [Howm-eng 49] " xma
2008-04-09 13:18 ` [Howm-eng 56] " khi
2008-04-12 0:00 ` [Howm-eng 68] " xma
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m3ej9hlt73.wl@id.domain \
--to=howm-eng@lists.osdn.me \
/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.
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 NNTP newsgroup(s).