Skip to content

Instantly share code, notes, and snippets.

@fasheng
Last active December 24, 2015 19:29
Show Gist options
  • Save fasheng/6850647 to your computer and use it in GitHub Desktop.
Save fasheng/6850647 to your computer and use it in GitHub Desktop.
For the themes which installed through elpa, add the following code to auto include the theme path in the `pkg-autoloads.el` file under elpa.
;;;###autoload
(and load-file-name
(boundp 'custom-theme-load-path)
(add-to-list 'custom-theme-load-path
(file-name-as-directory
(file-name-directory load-file-name))))
(provide-theme 'theme-name)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment