From: khi at users.sourceforge.jp (khi at users.sourceforge.jp)
Subject: [Howm-eng 60] Re: Separating work and personal
Date: Wed, 09 Apr 2008 22:41:01 +0900 [thread overview]
Message-ID: <m3myo3jgcy.wl@id.domain> (raw)
In-Reply-To: <2f1c7d020804090622s588658a8nc96bb19d4a5134c3@mail.gmail.com>
Welcome, Schmitt-san.
At Wed, 9 Apr 2008 10:22:21 -0300,
Hugo Schmitt wrote:
> The only idea i have is to have a function that changes howm default folder
> everytime i need to switch contexts.
You may want to switch keyword files, too.
;; from http://howm.sourceforge.jp/cgi-bin/hiki/hiki.cgi?SwitchMemoDirectory
(defun my-howm-set-directory (dir &optional keyfile)
`(lambda ()
(interactive)
(setq howm-directory ,dir)
(when ,keyfile
(setq howm-keyword-file ,keyfile))
(setq howm-menu-next-expiry-time (current-time))
(message "%s" ,dir)))
;; switch context and open menu
(defun my-howm-switch-directory (dir &optional keyfile)
(funcall (my-howm-set-directory dir keyfile))
(howm-menu))
;; example of key bindings
(global-set-key "\C-c,1" (my-howm-set-directory "~/howm1" "~/.howm1-keys"))
(global-set-key "\C-c,2" (my-howm-set-directory "~/howm2" "~/.howm2-keys"))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Optionally, you can switch contexts with keys "1" and "2" on the menu
buffer *howmM:%menu%* if you write the below strings in your menu file
0000-00-00-000000.howm.
%"1" %eval%(my-howm-switch-directory "~/howm1" "~/.howm1-keys")
%"2" %eval%(my-howm-switch-directory "~/howm2" "~/.howm2-keys")
Regards
--
khi at users.sourceforge.jp
prev parent reply other threads:[~2008-04-09 13:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-09 13:22 [Howm-eng 58] " hugows
2008-04-09 13:41 ` khi [this message]
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=m3myo3jgcy.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).