branch: elpa/annotate commit e1daa61b99482e622dbf20f7b91a87547fbb4802 Author: conao3 <con...@gmail.com> Commit: conao3 <con...@gmail.com>
use `locate-user-emacs-file` to specify default save file It is recommended that Elisp packages save files in user-emacs-directory. The default value for it is `~/.emacs.d/`, and it has been changed by the user, `locate-user-emacs-file` is returns path in consideration of the change. And `locate-user-emacs-file` returns previous path if file exist in HOME, this change is not destructive. cf: http://emacs.rubikitch.com/new-files/ --- annotate.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/annotate.el b/annotate.el index c5d0314855..09aa162f43 100644 --- a/annotate.el +++ b/annotate.el @@ -68,7 +68,7 @@ (define-key annotate-mode-map (kbd "C-c ]") 'annotate-next-annotation) (define-key annotate-mode-map (kbd "C-c [") 'annotate-previous-annotation) -(defcustom annotate-file "~/.annotations" +(defcustom annotate-file (locate-user-emacs-file "annotations" ".annotations") "File where annotations are stored." :type 'file :group 'annotate)