Re: migration notes: from emacs-wiki to muse
Stefan Reichör <[email protected]> Wed, 10 May 2006 08:14:45 +0200
| Newsgroups | gmane.emacs.wiki.general |
|---|---|
| Message-ID | <[email protected]> |
Phillip Lord <[email protected]> writes: >>>>>> "EM" == Evan MONROIG <[email protected]> writes: > > > EM> - The extension ".muse" is nice if you have files other than > EM> planner files in the same directory, but it adds > EM> complexity. For example if you have a few plan pages like > EM> 'Emacs' and 'EmacsTips', now you have to press "E <TAB> > EM> . <TAB> <Enter" to in the mini-buffer to find the 'Emacs' > EM> page, instead of "E <TAB> <Enter>". > > But if you have a file called, say "Makefile", in a muse directory, it > all gets very complicated. > > Have you tried ido.el. For instance, to complete Emacs or EmacsTips, > you can use substring (so "T <Enter>" may well complete to > EmacsTips). I've completely hooked on ido.el. I also use ido. And I use the following function to open one of my wiki pages in ~/data/wiki: When called with a prefix argument, grep is used to search for a keyword: (defun xsteve-open-wiki-page (arg) "Either open a wiki page via ido, or grep for a string in the wiki pages." (interactive "P") (let* ((default-directory "~/data/wiki") (grep-cmd (format "cd %s && grep -n -i --directories=skip" default-directory)) (file-glob "*")) (if arg (grep (concat grep-cmd " -e \"" (read-string (format "Search %s for regexp: " default-directory)) "\" " file-glob)) (ido-find-file)))) (global-set-key [(meta f12)] 'xsteve-open-wiki-page) Stefan.