Skip to content

Commit b531a47

Browse files
committed
Add safe-local property to defcustoms
1 parent 8ef7127 commit b531a47

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

clojure-mode.el

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,7 @@ instead of to `clojure-mode-map'."
342342
(defcustom clojure-verify-major-mode t
343343
"If non-nil, warn when activating the wrong major-mode."
344344
:type 'boolean
345+
:safe #'booleanp
345346
:package-version '(clojure-mode "5.3.0"))
346347

347348
(defun clojure--check-wrong-major-mode ()
@@ -808,18 +809,21 @@ will align the values like this:
808809
{:some-key 10
809810
:key2 20}"
810811
:package-version '(clojure-mode . "5.1")
812+
:safe #'booleanp
811813
:type 'boolean)
812814

813815
(defcustom clojure-align-binding-forms
814816
'("let" "when-let" "when-some" "if-let" "if-some" "binding" "loop"
815817
"doseq" "for" "with-open" "with-local-vars" "with-redefs")
816818
"List of strings matching forms that have binding forms."
817819
:package-version '(clojure-mode . "5.1")
820+
:safe #'listp
818821
:type '(repeat string))
819822

820823
(defcustom clojure-align-cond-forms '("condp" "cond" "cond->" "cond->>" "case" "are")
821824
"List of strings identifying cond-like forms."
822825
:package-version '(clojure-mode . "5.1")
826+
:safe #'listp
823827
:type '(repeat string))
824828

825829
(defun clojure--position-for-alignment ()
@@ -1204,6 +1208,7 @@ You can use this to let Emacs indent your own macros the same way
12041208
that it indents built-in macros like with-open. To manually set
12051209
it from Lisp code, use (put-clojure-indent 'some-symbol :defn)."
12061210
:type '(repeat symbol)
1211+
:safe #'listp
12071212
:set 'add-custom-clojure-indents)
12081213

12091214
(define-clojure-indent

0 commit comments

Comments
 (0)