Skip to content

Commit

Permalink
Desktop: Load unsafe variables on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
Ambrevar committed Apr 17, 2018
1 parent 96b1c2c commit aede907
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .emacs.d/lisp/main.el
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,8 @@
desktop-save t)
;; Before Emacs 27, initialization needs the patch above.
(if (< emacs-major-version 27)
(desktop-save-mode)
(let ((enable-local-variables :all))
(desktop-save-mode))
(defun ambrevar/desktop-init (_frame)
(desktop-save-mode)
(desktop-read)
Expand Down

0 comments on commit aede907

Please sign in to comment.