Emacs: Mark magit-todos-depth as safe in :init, not :config.

Because :config is executed after loading.
This commit is contained in:
tastytea 2020-04-10 14:06:21 +02:00
parent 1bdb1ef830
commit ec9a9c563d
1 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
;;; git.el --- magit and stuff. -*- lexical-binding: t; -*-
;; Time-stamp: <2020-03-27T17:09:45+0100>
;; Time-stamp: <2020-04-10T14:06:06+0200>
;;; Commentary:
@ -53,7 +53,7 @@
(use-package magit-todos
:after magit
:config
:init
;; Mark variables as safe. This prevents prompts when using .dir-locals.el.
(put 'magit-todos-depth 'safe-local-variable #'integerp)