Re: [O] [OT] The joy of elisp

2011-12-06 Thread Eric Schulte
Marcelo de Moraes Serpa writes: > Here's a new version: > > (defun find-wiki-by-tags (tags) > (interactive "sEnter tags: ") > (shell-command (format "cd ~/org; ack \"\\* tags.*(%s).*\" --all" tags) > "mybuf") > (set-buffer "mybuf") > (beginning-of-buffer) > (ignore-errors > (while (search-fo

Re: [O] [OT] The joy of elisp

2011-12-05 Thread Marcelo de Moraes Serpa
Here's a new version: (defun find-wiki-by-tags (tags) (interactive "sEnter tags: ") (shell-command (format "cd ~/org; ack \"\\* tags.*(%s).*\" --all" tags) "mybuf") (set-buffer "mybuf") (beginning-of-buffer) (ignore-errors (while (search-forward-regexp "\\(.*?\\):") (replace-match "[[~/or

[O] [OT] The joy of elisp

2011-12-04 Thread Marcelo de Moraes Serpa
Hi list! I decided to finally get my hands dirty and build a small function to improve my org-based productivity system. Let me explain: I have a subdirectory under ~/org which has a bunch of files named after different subjects. Originally it was supposed to model a wiki, but in practice, I cre