Function: jinx-mode
jinx-mode is an interactive and natively compiled function defined in
jinx.el.
Signature
(jinx-mode &optional ARG)
Documentation
Enchanted Spell Checker.
This is a minor mode. If called interactively, toggle the Jinx mode
mode. If the prefix argument is positive, enable the mode, and if it is
zero or negative, disable the mode.
If called from Lisp, toggle the mode if ARG is toggle. Enable the
mode if ARG is nil, omitted, or is a positive number. Disable the mode
if ARG is a negative number.
To check whether the minor mode is enabled in the current buffer,
evaluate the variable jinx-mode(var)/jinx-mode(fun).
The mode's hook is called both when the mode is enabled and when it is disabled.
Key Bindings
This command is not in any keymaps.
Source Code
;; Defined in /nix/store/b5jnxgwmlp7hh60wfrx7amhrmrpfcqqi-emacs-packages-deps/share/emacs/site-lisp/elpa/jinx-20260926.912/jinx.el
;;;###autoload
(define-minor-mode jinx-mode
"Enchanted Spell Checker."
:lighter (" " (:eval (concat "Jinx[" jinx-languages "]")))
:group 'jinx
:keymap jinx-mode-map
(cond
((buffer-base-buffer) ;; Do not enable in indirect buffers
(when jinx-mode
(jinx-mode -1)))
(jinx-mode
(jinx--load-module)
(cl-letf* ((enable-local-variables :safe)
(enable-local-eval nil)
;; Fix reentrancy problem (gh:minad/jinx#158)
((symbol-function #'jinx-mode) #'ignore))
(hack-local-variables 'ignore-mode))
(jinx--get-org-language)
(setq jinx--exclude-regexp
(when-let* ((regexps (jinx--mode-list jinx-exclude-regexps)))
(mapconcat (lambda (r) (format "\\(?:%s\\)" r))
regexps "\\|"))
jinx--include-faces (jinx--mode-list jinx-include-faces)
jinx--exclude-faces (jinx--mode-list jinx-exclude-faces)
jinx--exclude-properties (jinx--mode-list jinx-exclude-properties)
jinx--camel (or (eq jinx-camel-modes t)
(seq-some #'derived-mode-p jinx-camel-modes))
jinx--session-words (nconc (split-string jinx-dir-local-words)
(split-string jinx-local-words)))
(jinx--load-dicts)
(dolist (hook jinx--reschedule-hooks)
(add-hook hook #'jinx--reschedule nil t))
(jit-lock-register #'jinx--mark-pending))
(t
(mapc #'kill-local-variable '( jinx--exclude-regexp jinx--include-faces
jinx--exclude-faces jinx--camel
jinx--dicts jinx--syntax-table
jinx--session-words))
(dolist (hook jinx--reschedule-hooks)
(remove-hook hook #'jinx--reschedule t))
(jit-lock-unregister #'jinx--mark-pending)
(jinx--cleanup))))