Function: php-ts-mode--indent-defun

php-ts-mode--indent-defun is an interactive and byte-compiled function defined in php-ts-mode.el.gz.

Signature

(php-ts-mode--indent-defun)

Documentation

Indent the current top-level declaration syntactically.

treesit-defun-type-regexp defines what constructs to indent.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/php-ts-mode.el.gz
(defun php-ts-mode--indent-defun ()
  "Indent the current top-level declaration syntactically.
`treesit-defun-type-regexp' defines what constructs to indent."
  (interactive "*")
  (when-let* ((orig-point (point-marker))
	      (node (treesit-defun-at-point)))
    (indent-region (treesit-node-start node)
		   (treesit-node-end node))
    (goto-char orig-point)))