rranelli / auto-package-update.el

Automatically update Emacs packages.
151 stars 26 forks source link

last-update-day-path #13

Closed agsdot closed 9 years ago

agsdot commented 9 years ago

How would one customize where the .last-package-update-day is located in my .emacs.d?

Instead of in ~/.emacs.d/.last-package-update-day , I'd like to put the file in ~/.emacs.d/.cache/.last-package-update-day .

The reason being why I want to customize the files location is that I have a gitignore for my ~/.emacs.d/.cache/ directory, and find it simpler to ignore a directory than individual files (e.g. recentf, smex-items, projectile-bookmarks.eld, etc).

Thanks!

rranelli commented 9 years ago

You need to redefine apu--last-update-day-path. Probably

(setq apu--last-update-day-path 
         (expand-file-name ".cache/.last-package-update-day" user-emacs-directory))

Will suffice.

rranelli commented 9 years ago

As an aside, your problem is exactly why I don't source control my .emacs.d /directly/. Many packages add stuff to .emacs.d, and I ended up finding that messing with the .gitignore was not worth the hassle.

What I now do instead is add symbollic links in the ~/.emacs.d directory to git controlled files.

You can check how I automated this procedure in this file

agsdot commented 9 years ago

Thanks for the suggestion. I got it to work with

(setq apu--last-update-day-path (expand-file-name ".cache/.last-package-update-day" user-emacs-directory))

Intriguing, with regards to your second comment. I'll examine and dig into your emacs dotfiles to see how you got it all working.

I would say the issue is solved.

rranelli commented 9 years ago

:+1: