From 5269411ed8f2535b2694fac44bbc7848c52cf82f Mon Sep 17 00:00:00 2001 From: "Travis B. Hartwell" Date: Sun, 9 Aug 2015 13:09:32 -0600 Subject: [PATCH] Put the bookmark file in the cache directory. Only set `bookmark-default-file` in the package configuration. Put the file in the Spacemacs cache directory instead of the Emacs user directory. Also only set `bookmark-save-flag` in the package configuration. This is a breaking change. Those with existing bookmarks file will have to do something equivalent to this: `mv ~/.emacs.d/bookmarks ~/.emacs.d/.cache` and restart Emacs. Fixes syl20bnr/spacemacs#2594 --- spacemacs/config.el | 6 +----- spacemacs/packages.el | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/spacemacs/config.el b/spacemacs/config.el index b4ae280a6..c9727ec8c 100644 --- a/spacemacs/config.el +++ b/spacemacs/config.el @@ -271,11 +271,7 @@ These should have their own segments in the modeline.") (savehist-mode +1) ;; cache files -;; bookmarks -(setq bookmark-default-file (concat spacemacs-cache-directory "bookmarks") - ;; save after every change - bookmark-save-flag 1 - url-configuration-directory (concat spacemacs-cache-directory "url") +(setq url-configuration-directory (concat spacemacs-cache-directory "url") eshell-directory-name (concat spacemacs-cache-directory "eshell" ) tramp-persistency-file-name (concat spacemacs-cache-directory "tramp")) diff --git a/spacemacs/packages.el b/spacemacs/packages.el index 6e11c004d..8c69704e9 100644 --- a/spacemacs/packages.el +++ b/spacemacs/packages.el @@ -428,7 +428,7 @@ (use-package bookmark :defer t :init - (setq bookmark-default-file (concat user-emacs-directory "bookmarks") + (setq bookmark-default-file (concat spacemacs-cache-directory "bookmarks") ;; autosave each change bookmark-save-flag 1)))