aboutsummaryrefslogtreecommitdiff
path: root/thogai.el
diff options
context:
space:
mode:
Diffstat (limited to 'thogai.el')
-rw-r--r--thogai.el8
1 files changed, 7 insertions, 1 deletions
diff --git a/thogai.el b/thogai.el
index b30fdde..1fc350f 100644
--- a/thogai.el
+++ b/thogai.el
@@ -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)))