public inbox for howm-eng@lists.osdn.me
 help / color / mirror / Atom feed
* [Howm-eng 58]  Separating work and personal
@ 2008-04-09 13:22 hugows
  2008-04-09 13:41 ` [Howm-eng 60] " khi
  0 siblings, 1 reply; 2+ messages in thread
From: hugows @ 2008-04-09 13:22 UTC (permalink / raw)


Hi guys.
This is my first post to the howm mailing list.

At first there's something I'm missing: being able to separate personal
notes from work notes.
(I'm not allowed to take information about work outside of the company, so
that's important for me)

The only idea i have is to have a function that changes howm default folder
everytime i need to switch contexts.
I haven't tried it yet, though.
Is there any other way?

Thanks in advance,
Hugo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.sourceforge.jp/mailman/archives/howm-eng/attachments/20080409/47daafd4/attachment.htm 

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Howm-eng 60] Re: Separating work and personal
  2008-04-09 13:22 [Howm-eng 58] Separating work and personal hugows
@ 2008-04-09 13:41 ` khi
  0 siblings, 0 replies; 2+ messages in thread
From: khi @ 2008-04-09 13:41 UTC (permalink / raw)


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



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-04-09 13:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-09 13:22 [Howm-eng 58] Separating work and personal hugows
2008-04-09 13:41 ` [Howm-eng 60] " khi

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