[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Wed, 04 Dec 2019 20:36:42 -0500
mu4e 1.3.4; emacs 26.1
If you like ivy, you might find this helpful:
(defun ivy-org-jump-to-heading ()
"Jump to heading in the current buffer."
(let ((headlines '()))
;; this matches org headings in elisp too.
"^\\(;; \\)?\\(\\*+\\)\\(?: +\\(.*?\\)\\)?[ ]*$" nil t)
(cons 'position (match-beginning 0)))
(ivy-read "Headline: "
:action (lambda (candidate)
(goto-char (cdr (assoc 'position candidate)))
There are also helm equivalents.
Fraga, Eric <address@hidden> writes:
> On Wednesday, 4 Dec 2019 at 10:26, Matt Price wrote:
>> Is there a quasi-equivalent of ~org-id-goto~ or
>> ~org-babel-goto-named-src-block~ which will jump to a header in the
>> current buffer?
> If by header you mean headline or heading, I don't think there is
> anything exactly how you might want it but you should maybe look at
> "org-goto" and "org-occur" (or both in combination).
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213