From 655ce45b2f4f8ebcc0e1937e1a362228022dd95d Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Mon, 11 Sep 2023 21:06:09 -0700 Subject: [oni-core] Set ‘safe-local-variable-directories’ This is a new variable in Emacs 30 that lets me specify which directories can be trusted with local variable values. (Or it should be, I haven't seen it available yet.) --- oni-core.el | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'oni-core.el') diff --git a/oni-core.el b/oni-core.el index 9f76fbb..d678cfe 100644 --- a/oni-core.el +++ b/oni-core.el @@ -4,7 +4,7 @@ ;; Author: Tom Willemse ;; Keywords: local -;; Version: 2023.0814.145257 +;; Version: 2023.0911.210534 ;; Package-Requires: (oni-data-dir oni-embrace oni-hydra expand-region multiple-cursors gcmh diminish ws-butler which-key insert-char-preview mixed-pitch ace-window vertico marginalia orderless consult embark docstr mini-frame) ;; This program is free software; you can redistribute it and/or modify @@ -539,5 +539,11 @@ which normally have their errors suppressed." (goto-char (match-end 0)) (buffer-substring-no-properties (point) (line-end-position))))))) +(if (boundp 'safe-local-variable-directories) + (setq safe-local-variable-directories + (cl-delete-if + (lambda (d) (string-match-p (rx "/" (or "." ".." "foreign") eos) d)) + (directory-files "~/projects/" t)))) + (provide 'oni-core) ;;; oni-core.el ends here -- cgit v1.2.3-54-g00ecf