austin----- / weibo.emacs

Sina weibo client in Emacs
https://github.com/austin-----/weibo.emacs
105 stars 28 forks source link

I want let the cache in memory #4

Closed roowe closed 12 years ago

roowe commented 12 years ago

I want let "~/.t.weibo.emacs.d/" in "/tmp/.t.weibo.emacs.d/",but when I del the "~/.t.weibo.emacs.d/", and I modfiy the path, I will must get pin number again. and I find it not work in "/tmp/.t.weibo.emacs.d/"

austin----- commented 12 years ago

Hi Roowe, you need to have your token file in a directory that is persistent. Let's say you have it as ~/.t.weibo.emacs.token. In your .emacs file, add:

(defadvice weibo-get-token-file (after weibo-alternative-token-file activate) (setq ad-return-value "~/.t.weibo.emacs.token"))

You can then set weibo-directory to whatever you favor (/tmp/.t.weibo.emacs.d is ok).