Since it's a minor mode, it was simple to hook org-mode to run howm-mode when it starts up, and to invoke org-mode when viewing howm-mode's notes files. What does this mean? It means that terms or phrases in my outlines that match links from a howm file are automatically treated as links to more information on that term, and that my howm notes can take advantage of Org's formatting and ability to link to esoteric types of information (like my IMAP email messages in Gnus).
Here's the code in my ~/.emacs file that the howm-mode developer suggested adding for connecting org-mode and howm-mode:
Code:
(setq howm-view-title-header "*") ;; *BEFORE* loading howm!
This line makes howm notes start with an asterisk, which is also the default character for org outlines. This way, when viewing a howm note's title, howm-mode will recognize one of its Wiki notes and org-mode will recognize the beginning of an outline, and your Wiki notes will be ready to drop into a larger outline at any time. As the comment suggests, it needs to happen before the howm library is loaded to have any effect, which happens in the next line:
Code:
(require 'howm)
Code:
(add-hook 'org-mode-hook 'howm-mode)
This line just adds a simple "hook" to make sure that howm-mode is run whenever org-mode is run in a given buffer. This allows me to see links to Wiki notes for further information in my Org outlines without manually enabling howm-mode, use howm's key shortcuts inside org-mode, etc.
Code:
(add-to-list 'auto-mode-alist '("\\.howm$" . org-mode))
This automatically runs org-mode when viewing a *.howm file (the standard extension for howm-mode's notes, obviously). Since howm is a minor mode whose simple markup doesn't interfere with Org-mode's, this works beautifully, and my quick Wiki notes are mini org-mode files, ready for quick addition to one of my larger outlines, like the ones I keep for course work or major projects.






Nano is an editor, while Emacs is a mini-operating system that lacks an editor that works normally!
) to turn the current line into a heading of an outline, Alt plus the arrow keys to promote/demote headlines, Tab to reveal or hide subheadings, etc. With a few simple commands, you can build a well-structured outline for your notes in a text file, complete with internal and external links (including to other Emacs applications, like searching for a person in the Big Brother Database or linking to an email you received in Gnus or RMAIL) and built-in, very fast support for making to-do notes and adding deadlines, schedules, and other timestamps without going into a separate calendar app. Better yet, you can have it display an agenda based on any notes associated with dates/tasks--across multiple org files! And export your notes to HTML (and easily make tables) or LaTeX (and easily write formulas)! There are also tags and lots of other features that I'll let you try for yourself, plus the ability to use most of the cooler features of org-mode as minor modes within other parts of Emacs.