Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor changes for MELPA readiness #1

Merged
merged 5 commits into from
Mar 8, 2021

Conversation

bnjmnt4n
Copy link

@bnjmnt4n bnjmnt4n commented Mar 2, 2021

I've added a Package-Requires header to allow dependencies to be fetched automatically by package managers, and removed the eval-when-compile block around (require 'oauth2), which does not seem to be necessary anymore (please let me know if it still causes issues).

I also made some other non-related changes, do let me know if you want me to separate them out:

  • use user-emacs-directory instead of hardcoding ~/.emacs.d
  • Ensured that make-empty-file creates the full path, instead of just erring if the directories were not created

@@ -80,7 +69,7 @@ globally relevant."
(defvar *spotify-client-api-oauth2-ts* nil
"Unix timestamp in which the OAuth2 token was retrieved.
This is used to manually refresh the token when it's about to expire.")
(defvar *spotify-client-api-oauth2-token-directory* "~/.emacs.d/.cache/spotify"
(defvar *spotify-client-api-oauth2-token-directory* (concat (file-name-as-directory user-emacs-directory) ".local/cache/spotify")
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bnjmnt4n Thanks for this PR! From all the discussion I can find, I don't see any reference to .local. I was basing the token directory location on discussion I found here and also here. Was this intentional?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, it appears that the .local path is a custom modification made internally by doom-emacs. I'll remove the change.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll go ahead and merge and make that tweak. Thanks! @bnjmnt4n

@jkdufair jkdufair merged commit df324e9 into jkdufair:feature/melpa Mar 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants