@@ -247,6 +247,7 @@ custom function: the cursor will be moved to the end of the inline region, and
247
247
(define-minor-mode sis-log-mode
248
248
" Log the execution of this package."
249
249
:global t
250
+ :group 'sis
250
251
:init-value nil )
251
252
252
253
; ;
@@ -605,6 +606,7 @@ TYPE: TYPE can be \\='native, \\='w32, \\='emp, \\='macism, \\='im-select,
605
606
(define-minor-mode sis-auto-refresh-mode
606
607
" Automaticly refresh input source."
607
608
:global t
609
+ :group 'sis
608
610
:init-value nil
609
611
(cond
610
612
(; turn on the mode
@@ -682,6 +684,7 @@ way."
682
684
(define-minor-mode sis-global-cursor-color-mode
683
685
" Automaticly change cursor color according to input source."
684
686
:global t
687
+ :group 'sis
685
688
:init-value nil
686
689
(cond
687
690
(; turn on the mode
@@ -1029,9 +1032,11 @@ Possible values: \\='normal, \\='prefix, \\='sequence.")
1029
1032
1030
1033
- Respect start: start this mode with specific input source.
1031
1034
- Respect ~evil~: switch to English when leaving ~evil~ ~insert~ mode.
1032
- - Respect prefix key: switch to English for ~C-c~/ ~C-x~/ ~C-h~.
1035
+ - Respect prefix key: switch to English for \\ [Control-c] / \\ [Control-x] /
1036
+ \\ [Control-h].
1033
1037
- Respect buffer: restore buffer input source when it regain focus."
1034
1038
:global t
1039
+ :group 'sis
1035
1040
:init-value nil
1036
1041
(cond
1037
1042
(; turn on the mode
@@ -1151,10 +1156,10 @@ Possible values: \\='normal, \\='prefix, \\='sequence.")
1151
1156
)
1152
1157
1153
1158
(defun sis--back-detect-chars ()
1154
- " Detect char backward by two steps .
1159
+ " Detect char backward by two step .
1155
1160
1156
- First backward skip blank in the current line,
1157
- then backward skip blank across lines."
1161
+ Step 1: backward skip blank in the current line.
1162
+ Step 2: backward skip blank across lines."
1158
1163
(save-excursion
1159
1164
(skip-chars-backward sis-blank-pattern)
1160
1165
(let ((to (point ))
@@ -1280,6 +1285,7 @@ If POSITION is not provided, then default to be the current position."
1280
1285
;;;### autoload
1281
1286
(define-minor-mode sis-context-mode
1282
1287
" Switch input source smartly according to context."
1288
+ :group 'sis
1283
1289
:init-value nil
1284
1290
(cond
1285
1291
(; turn on the mode
@@ -1319,13 +1325,13 @@ If POSITION is not provided, then default to be the current position."
1319
1325
(dolist (hook sis-context-hooks)
1320
1326
(remove-hook hook #'sis-context nil ))))
1321
1327
(dolist (trigger sis-context-triggers)
1322
- (let ((trigger-fn (eval (nth 0 trigger)))
1323
- ; ; delete advices with property of 'sis--context-trigger-advice
1324
- (advice-mapc
1325
- (lambda (advice _ )
1326
- (when (get (intern advice) 'sis--context-trigger-advice )
1327
- (advice-remove trigger-fn advice))
1328
- trigger-fn)) ))))))
1328
+ (let ((trigger-fn (eval (nth 0 trigger))))
1329
+ ; ; delete advices with property of 'sis--context-trigger-advice
1330
+ (advice-mapc
1331
+ (lambda (advice _ )
1332
+ (when (get (intern advice) 'sis--context-trigger-advice )
1333
+ (advice-remove trigger-fn advice) ))
1334
+ trigger-fn))))))
1329
1335
1330
1336
;;;### autoload
1331
1337
(define-globalized-minor-mode
@@ -1369,6 +1375,7 @@ If POSITION is not provided, then default to be the current position."
1369
1375
;;;### autoload
1370
1376
(define-minor-mode sis-inline-mode
1371
1377
" English overlay mode for mixed language editing."
1378
+ :group 'sis
1372
1379
:init-value nil
1373
1380
(cond
1374
1381
(; turn on the mode
@@ -1516,8 +1523,8 @@ START: start position of the inline region."
1516
1523
1517
1524
; ; select input source
1518
1525
(let* ((back-detect (sis--back-detect-chars))
1519
- (back-to (sis-back-detect-to back-detect))
1520
- (back-char (sis-back-detect-char back-detect)))
1526
+ ; ; (back-char (sis-back-detect-char back-detect))
1527
+ (back-to (sis-back-detect-to back-detect)))
1521
1528
1522
1529
1523
1530
(cond
0 commit comments