From c9b64b5862f4234afbb8b668314c08ebe2e0254f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B2=88=E6=B5=AA=E7=86=8A=E7=8C=AB=E5=84=BF?= Date: Sat, 20 Jul 2024 12:58:29 +0000 Subject: [PATCH] [61_11] Plugin: session-enable-math-input for default math input --- TeXmacs/progs/dynamic/session-edit.scm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/TeXmacs/progs/dynamic/session-edit.scm b/TeXmacs/progs/dynamic/session-edit.scm index 04cdb1cff2..6c16671c3b 100644 --- a/TeXmacs/progs/dynamic/session-edit.scm +++ b/TeXmacs/progs/dynamic/session-edit.scm @@ -61,6 +61,9 @@ (cons (car opts) (cadr opts))) (ahash-ref session-math-input key))) +(tm-define (session-enable-math-input lan ses) + (ahash-set! session-math-input (cons lan ses) #t)) + (tm-define (toggle-session-math-input) (:synopsis "Toggle mathematical input in sessions.") (:check-mark "v" session-math-input?)