From 5290b5dddb9903b2e8010fe63564a31f208d209d Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Thu, 22 Jan 2026 14:52:12 +0200 Subject: [PATCH] ; Fix :type of 'yaml-ts-mode-yamllint-options' * lisp/textmodes/yaml-ts-mode.el (yaml-ts-mode-yamllint-options): Fix :type and doc string. --- lisp/textmodes/yaml-ts-mode.el | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lisp/textmodes/yaml-ts-mode.el b/lisp/textmodes/yaml-ts-mode.el index f221a16abdb..948186b5a9a 100644 --- a/lisp/textmodes/yaml-ts-mode.el +++ b/lisp/textmodes/yaml-ts-mode.el @@ -47,10 +47,13 @@ :group 'languages) (defcustom yaml-ts-mode-yamllint-options nil - "Additional options to pass to yamllint command used for Flymake support." + "Additional options to pass to yamllint command used for Flymake support. +If non-nil, this should be a single string with command-line options +for the yamllint command, with individual options separated by whitespace." :group 'yaml-ts-mode :version "31.1" - :type 'string) + :type '(choice (const :tag "None" nil) + (string :tag "Options as a single string"))) (defvar yaml-ts-mode--syntax-table (let ((table (make-syntax-table)))