Function: embark-org-heading-default-action

embark-org-heading-default-action is a byte-compiled function defined in embark-org.el.

Signature

(embark-org-heading-default-action TARGET)

Documentation

Default action for Org headings.

There are two types of heading TARGETs: the heading at point in a normal org buffer, and references to org headings in some other buffer (for example, org agenda items). For references the default action is to jump to the reference, and for the heading at point, the default action is whatever is bound to RET in embark-org-heading-map, or org-todo if RET is unbound.

Source Code

;; Defined in ~/.emacs.d/elpa/embark-20260610.302/embark-org.el
(defun embark-org-heading-default-action (target)
  "Default action for Org headings.
There are two types of heading TARGETs: the heading at point in a
normal org buffer, and references to org headings in some other
buffer (for example, org agenda items).  For references the
default action is to jump to the reference, and for the heading
at point, the default action is whatever is bound to RET in
`embark-org-heading-map', or `org-todo' if RET is unbound."
  (if (get-text-property 0 'org-marker target)
      (embark-org-goto-heading :target target)
    (command-execute
     (or (keymap-lookup embark-org-heading-map "RET") #'org-todo))))