doom-file-write's :mode parameter now accepts a cons cell, whose CDR will determine the file mode for directories that get implicitly created by the function.