]> git.earman.xyz Git - emacsinit.git/commitdiff
Howm re-start
authorrearman <rearman@r717.net>
Mon, 23 Feb 2026 19:47:42 +0000 (14:47 -0500)
committerrearman <rearman@r717.net>
Mon, 23 Feb 2026 19:47:42 +0000 (14:47 -0500)
Howm appears to be well suited to the simplicity of GTD, much more so than the
overdone nature of org-mode.  I have moved the menu to this folder for two
reasons:
1. to have it on any computer on which I install emacs.
2. to make it not show up in the howm overview.

I have also removed unused templates, and
made the default capture template have a tag of "#inbox".

re/0000-00-00-000000.txt [new file with mode: 0644]
re/re-howm-skeletons.el [deleted file]
re/re-packages.el

diff --git a/re/0000-00-00-000000.txt b/re/0000-00-00-000000.txt
new file mode 100644 (file)
index 0000000..2c3c6c6
--- /dev/null
@@ -0,0 +1,80 @@
+= <<< %menu%
+%last-update %"R"[Update Menu]
+
+ Create:   %"e"[Remember]  %"c"[New]    %"M"[Mtg]    %"P"[Person]      %"D"[Dup]
+ Search:   %"s"[String]    %"g"[Regexp] %"o"[Occur]  %"h"[History]
+ List:     %"a"[All]       %"l"[Recent] %"A"[Around] %"w"[Random Walk]
+ Dates:    %"y"[Schedule]  %"t"[Todo]   %"."[Today]  %":"[Yesterday]
+ Buffers:  %"b"[Buffers]   %"x"[Marks]  %"r"[Update] %"Q"[Killall]
+ Copy:     %"K"[<Title]    %"k"[<Name]
+ Insert:   %"d"[Date>]     %"i"[Key>]
+ Settings: %"m"[Edit Menu]  [Preference]
+-------------------------------------------------------------
+%here%(re/howm-menu-legend)
+%reminder
+-------------------------------------------------------------
+Inbox
+%here%(howm-menu-search "#inbox")
+-------------------------------------------------------------
+Recent
+%recent
+-------------------------------------------------------------
+
+= <<< %Editing Menu%
+[Edit Menu] Hit RET on the left button to edit this menu.
+[Update Menu] Hit RET on the left button to update this menu.
+-------------------------------------------------------------
+
+Format of the menu file
+(Please hit RET on [Edit Menu] and read the source file.)
+
+== Basic format
+
+As you see...
+
+- [xxx] is button.
+- %REMINDER (in small letters) is schedule and todo list.
+- %RECENT (in small letters) is list of recent entries.
+- %RANDOM (in small letters) is list of random entries.
+
+You can arrange their places as you like.
+Writing favorite files or goto links may be also convenient.
+(ex) file:///etc/services   >>> wiki
+
+== Shortcut
+
+%"foo"[All]
+This is displayed as foo[All], and the key "f" executes [All].
+Exactly speaking, it executes the following sequence:
+(1) move to closing ", (2) move to next underline, and (3) hit it.
+
+%"bar%"
+If you put % at the tail like this, the key "b" means "move cursor here".
+
+== For lispers
+
+Display:
+%here%howm-congrats-count ;; embed value of variable howm-congrats-count
+%here%(howm-menu-search "search")
+;; embed result of (...), that is, search "search" and embed matched lines
+Functions must be registered for safety.
+(setq howm-menu-allow (append '(foo bar) howm-menu-allow)) ;; allow foo, bar
+
+Action:
+%eval%(message (buffer-name))  ;; evaluate S expr
+%call%find-file  ;; call function interactively
+Both are evaluated in the previous buffer before raising menu.
+
+== Hiding
+
+'%' + '|' toggles invisibility
+like this: visible%|invisible%|appear%|disappear  - until the end of line
+(Newline is removed when the end of line is invisible.)
+
+== Multiple menus
+
+Links to %xxx% open "<< < %xxx%" with menu-mode: >>> %menu%
+When you add new menu, [[%menu%]] may be more convenient because corresponding
+entry is generated automatically.
+
+%eval%(howm-menu-open "00000000-000000.txt")  -- open file with menu-mode
diff --git a/re/re-howm-skeletons.el b/re/re-howm-skeletons.el
deleted file mode 100644 (file)
index 06ac02f..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-;;; re-howm-skeletons.el -*- lexical-binding: t; -*-
-;; This file is not part of GNU Emacs
-
-;;; Code:
-
-(define-skeleton howm-facility
-  "Insert the structure for a facility note in HOWM"
-  ""
-  "SystemNotes"
-  _ - \n
-  "BeforeStartup\n"
-  "PLC\n"
-  "HMI\n"
-  "Commissioning\n"
-  "AfterStartup\n")
-
-(define-skeleton howm-person
-  "Insert the structure for a person note in HOWM"
-  ""
-  "Company: "
-  _ - \n
-  "Position: \n"
-  "Email: \n"
-  "Office: \n"
-  "Cell: \n")
-
-(provide 're-howm-skeletons)
-;;; re-howm-skeletons.el ends here
index ac1bbc66c5dcd4f306a7584fbefb68b926dcaedb..ab4e58dd4685b20e0cc49cd25c85f4ae0a4c166e 100644 (file)
                (list '("\\[Mtg\\]" (lambda (&optional dummy) (howm-create 2)))
                      '("\\[Person\\]" (lambda (&optional dummy) (howm-create 3))))))
   (require 're-howm-defuns)
-  (require 're-howm-skeletons)
-  (setq howm-template-list '("= %title%cursor\n%date %file\n\n"
+  (setq howm-template-list '("= %title%cursor \s#inbox\n%date %file\n\n"
                             "= %title%cursor Meeting\n%date %file\n\nAttendees: \n"
                             "= @%title%cursor\n%date %file\n\n")
        howm-template howm-template-list
        howm-keyword-file "~/howm/.howm-keys"
        howm-history-file "~/howm/.howm-history"
-       howm-menu-file "0000-00-00-000000.txt"
+       howm-menu-file "~/.emacs.d/re/0000-00-00-000000.txt"
        howm-keyword-case-fold-search t
        howm-remember-insertion-format "%s"
        howm-menu-expiry-hours 1