You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
REQUEST: Would you please call a new user init function like dotspacemacs/user-packages-loaded or something, or maybe call dotspacemacs/user-config right after the call to configuration-layer//load-packages?
REASON: I just had to add a patch to flycheck because of a loading problem that was hanging Emacs when it turned flycheck-mode on for a buffer. Putting the patch into user-init was too early because require couldn't find flycheck.el and putting it into user-config was too late because the desktop had already been loaded, flycheck turned on, and Emacs completely hung. My solution was to advise configuration-layer//load-packages like this in my user-init function:
(defun dotspacemacs/user-init ()
"Initialization function for user code.
It is called immediately after `dotspacemacs/init'. You are free to put almost any
user code here. The exception is org related code, which should be placed in
`dotspacemacs/user-config'."
(advice-add 'configuration-layer//load-packages :after
(lambda (&rest args)
(dotspacemacs/patch-flycheck))))
Adding advice to configuration-layer/sync did not work, by the way.
The text was updated successfully, but these errors were encountered:
There may be, but doesn't it make sense to call a user function right after packages have loaded? There may be many other cases like this that aren't desktop.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid!
REQUEST: Would you please call a new user init function like dotspacemacs/user-packages-loaded or something, or maybe call dotspacemacs/user-config right after the call to configuration-layer//load-packages?
REASON: I just had to add a patch to flycheck because of a loading problem that was hanging Emacs when it turned flycheck-mode on for a buffer. Putting the patch into user-init was too early because require couldn't find flycheck.el and putting it into user-config was too late because the desktop had already been loaded, flycheck turned on, and Emacs completely hung. My solution was to advise configuration-layer//load-packages like this in my user-init function:
Adding advice to configuration-layer/sync did not work, by the way.
The text was updated successfully, but these errors were encountered: