diff options
Diffstat (limited to 'thogai.el')
-rw-r--r-- | thogai.el | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -298,7 +298,7 @@ have been processed yet. This is an internal recursion variable. External callers should always pass nil as the value." (pcase (save-match-data (string-match (rx string-start (or (one-or-more (not ?{)) - (sequence ?{ (one-or-more (not ?{)) ?}))) + (sequence ?{ (zero-or-more (not ?{)) ?}))) translation) (list (match-string 0 translation) (substring translation (match-end 0)))) @@ -349,6 +349,12 @@ External callers should always pass nil as the value." (string-remove-prefix "{&" (string-remove-suffix "}" translation))) non-first-part-p) (setq thogai-glue t)) + ;; Cancel formatting. + ("{}" + (setq thogai-attach-next nil + thogai-capitalize-next-word nil + thogai-glue nil + thogai-uncapitalize-next-word nil)) ;; Period, question mark or exclamation mark ((or "{.}" "{?}" "{!}") (insert (string-remove-prefix "{" (string-remove-suffix "}" translation))) |