Skip to content

Instantly share code, notes, and snippets.

@tjg
tjg / helm-clojure-headlines.el
Last active July 5, 2022 13:27 — forked from juxtin/helm-clojure-headlines.el
helm-clojure-headlines
;; Might want to customize helm-candidate-number-limit, because by
;; default it shows 100 matches maximum.
;; FIXME: collect line count, and display if it's past helm-candidate-number-limit.
(defun helm-headlines (headline buffer-name good-regex exception-regex)
"Display headlines for the current file.
Displays lines where good-regex matches, except for those
which also match exception-regex."