Function: markdown-ts-table-mode
markdown-ts-table-mode is a byte-compiled function defined in
markdown-ts-mode.el.gz.
Signature
(markdown-ts-table-mode &optional ARG)
Documentation
Minor mode to enable commands in tables.
If non-nil and point is in a table, enable
markdown-ts-in-table-mode(var)/markdown-ts-in-table-mode(fun).
This is a minor mode. If called interactively, toggle the
Markdown-Ts-Table mode mode. If the prefix argument is positive,
enable the mode, and if it is zero or negative, disable the mode.
If called from Lisp, toggle the mode if ARG is toggle. Enable the
mode if ARG is nil, omitted, or is a positive number. Disable the mode
if ARG is a negative number.
To check whether the minor mode is enabled in the current buffer,
evaluate the variable markdown-ts-table-mode(var)/markdown-ts-table-mode(fun).
The mode's hook is called both when the mode is enabled and when it is disabled.
Source Code
;; Defined in /usr/src/emacs/lisp/textmodes/markdown-ts-mode.el.gz
(define-minor-mode markdown-ts-table-mode
"Minor mode to enable commands in tables.
If non-nil and `point' is in a table, enable
`markdown-ts-in-table-mode'."
:group 'markdown-ts
:interactive nil
(markdown-ts--barf-if-not-mode 'markdown-ts-table-mode)
(cond (markdown-ts-table-mode
;; Enable the minor mode `markdown-ts-in-table-mode' and
;; its keymap when point is within a code block.
(add-hook 'post-command-hook
#'markdown-ts--enable-in-table-mode nil 'local)
;; If `save-place-mode' or similar is used, point could start within
;; a table, so initialize from that state.
(run-with-timer 0.01 nil
#'markdown-ts--enable-in-table-mode))
(t
(remove-hook 'post-command-hook
#'markdown-ts--enable-in-table-mode 'local))))