Skip to content

Commit

Permalink
Put the bookmark file in the cache directory.
Browse files Browse the repository at this point in the history
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#2594
  • Loading branch information
travisbhartwell authored and syl20bnr committed Aug 11, 2015
1 parent e4662ac commit 5269411
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions spacemacs/config.el
Original file line number Diff line number Diff line change
Expand Up @@ -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"))

Expand Down
2 changes: 1 addition & 1 deletion spacemacs/packages.el
Original file line number Diff line number Diff line change
Expand Up @@ -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)))

Expand Down

0 comments on commit 5269411

Please sign in to comment.