Function: jinx-languages
jinx-languages is an interactive and natively compiled function
defined in jinx.el.
Signature
(jinx-languages LANGS &optional GLOBAL)
Documentation
Set languages locally or globally to LANGS.
LANGS should be one or more language codes as a string, separated
by whitespace. When called interactively, the language codes are
read via completing-read-multiple. If the prefix argument
GLOBAL is non-nil, the languages are changed globally for all
buffers. See also the variable jinx-languages(var)/jinx-languages(fun).
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
;;;; Public commands
;;;###autoload
(defun jinx-languages (langs &optional global)
"Set languages locally or globally to LANGS.
LANGS should be one or more language codes as a string, separated
by whitespace. When called interactively, the language codes are
read via `completing-read-multiple'. If the prefix argument
GLOBAL is non-nil, the languages are changed globally for all
buffers. See also the variable `jinx-languages'."
(interactive (list (jinx--read-languages) current-prefix-arg))
(unless jinx-mode (jinx-mode))
(cond
(global
(kill-local-variable 'jinx-languages)
(setq-default jinx-languages langs))
(t
(setq-local jinx-languages langs)
(when (or (assq 'jinx-languages file-local-variables-alist)
(if (eq jinx-save-languages 'ask)
(and buffer-file-name
(y-or-n-p "Save `jinx-languages' as file-local variable? "))
jinx-save-languages))
(jinx--add-file-local 'jinx-languages)
(setf (alist-get 'jinx-languages file-local-variables-alist) jinx-languages))))
(jinx--load-dicts)
(jinx--cleanup))