Function: align--rule-should-run
align--rule-should-run is a byte-compiled function defined in
align.el.gz.
Signature
(align--rule-should-run RULE)
Documentation
Given an align-rules-list entry RULE, return t if it should run.
This is decided by the modes and run-if keys in the alist
RULE. Their meaning is documented in align-rules-list (which see).
Source Code
;; Defined in /usr/src/emacs/lisp/align.el.gz
(defun align--rule-should-run (rule)
"Given an `align-rules-list' entry RULE, return t if it should run.
This is decided by the `modes' and `run-if' keys in the alist
RULE. Their meaning is documented in `align-rules-list' (which see)."
(let-alist rule
(not (or (and .modes (not (derived-mode-p (eval .modes))))
(and .run-if (not (funcall .run-if)))))))