New answers tagged

0

Adapted from https://github.com/ronert/.emacs.d/blob/master/lisp/init-sessions.el#L29 (use-package session :ensure t ;:pin melpa-stable :config (progn (setq session-save-file (expand-file-name "~/.emacs.d/.session")) (add-hook 'after-init-hook 'session-initialize) ;; save a bunch of variables to the desktop file ;; for ...


1

use-package's :init block is run before the package has been loaded. Try putting the code inside a :config block instead, like: (use-package session :config (session-initialize) (defun ... I also removed the progn, as use-package allows multiple statements in the :config block. EDIT: as requested in a comment, the desktop-save-mode use-package block: (...


Top 50 recent answers are included