I am trying to get org-mode syntax within a helm buffer. I want the candidates to render using org-mode syntax. How can I do this?

  • did you mean Org Mode's syntax highlight? I notice helm-org package's helm-org-in-buffer-headings command can produce the syntax highlight once you set helm-org-headings-fontify to t. Though I don't know how it works. – xuchunyang Sep 30 '20 at 10:35
  • yes that is what I mean. helm-org-in-buffer-headings is a useful resource. From looking at it, the relievent function is github.com/emacs-helm/helm-org/blob/… – Joann Morris Oct 4 '20 at 0:40
  • Helm-org finds the headings and displays them using match-string, so my guess is you don't set the major-mode explicitly. Instead you use text properties to fontify the candidates, for example using buffer-substring etc. See also org-fontify-like-in-org-mode. – jagrg Jan 5 at 13:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.