aboutsummaryrefslogtreecommitdiffstats
path: root/oni-core.el
diff options
context:
space:
mode:
authorGravatar Tom Willemse2023-09-11 21:06:09 -0700
committerGravatar Tom Willemse2023-09-11 21:07:32 -0700
commit655ce45b2f4f8ebcc0e1937e1a362228022dd95d (patch)
tree0fc58956b58a978b50cc403baef6973916e099ed /oni-core.el
parente2a8115ba8e871b69bba1d3b7b81d1008441e768 (diff)
downloademacs-config-655ce45b2f4f8ebcc0e1937e1a362228022dd95d.tar.gz
emacs-config-655ce45b2f4f8ebcc0e1937e1a362228022dd95d.zip
[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.)
Diffstat (limited to 'oni-core.el')
-rw-r--r--oni-core.el8
1 files changed, 7 insertions, 1 deletions
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 <tom@ryuslash.org>
;; 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