oo-use-text-abbrev-p is a function defined in
990-abbrev-configuration.el.
Signature
(oo-use-text-abbrev-p)
Documentation
Return non-nil when text abbrevs should be enabled.
This is when the current major-mode is derived from text-mode or point is in a
string or comment.
References
oo-use-text-abbrev-p is unused in 990-abbrev-configuration.el.
Find all references Functions used by oo-use-text-abbrev-p
Debugging
Enable edebug Enable tracing
Disassemble Forget
Source Code
~/.config/emacs/lisp/990-abbrev-configuration.el
(defun! oo-use-text-abbrev-p ()
"Return non-nil when text abbrevs should be enabled.
This is when the current major-mode is derived from text-mode or point is in a
string or comment."
(or (derived-mode-p 'text-mode)
(cl-case (oo-in-string-or-comment-p)
(string
(set! string-beg (car (bounds-of-thing-at-point 'string)))
(set! word-beg (save-excursion (backward-word) (point)))
(> word-beg string-beg))
(comment
(set! comment-beg (save-excursion (comment-beginning) (point)))
(set! word-beg (save-excursion (backward-word) (point)))
(>= word-beg comment-beg)))))