Making imenu and todotxt work with emacs