Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

persistence? #21

Closed
nosefouratyou opened this issue Jul 16, 2017 · 1 comment
Closed

persistence? #21

nosefouratyou opened this issue Jul 16, 2017 · 1 comment

Comments

@nosefouratyou
Copy link

I have the following setup:

(use-package bm
  :ensure t
  :config
  (setq bm-in-lifo-order t)
  (setq bm-cycle-all-buffers t)
  (setq bm-repository-file "~/.emacs.d/bm")
  (setq-default bm-buffer-persistence t)
  (add-hook' after-init-hook 'bm-repository-load)
  (add-hook 'kill-buffer-hook #'bm-buffer-save)
  (add-hook 'after-save-hook #'bm-buffer-save)
  (add-hook 'kill-emacs-hook #'(lambda nil
				 (bm-buffer-save-all)
				 (bm-repository-save)))
  (add-hook 'find-file-hooks   #'bm-buffer-restore)
  (add-hook 'after-revert-hook #'bm-buffer-restore)
  (global-set-key (kbd "<C-f2>") 'bm-toggle)
  (global-set-key (kbd "<f2>")   'bm-next)
  (global-set-key (kbd "<S-f2>") 'bm-previous)
  (global-set-key (kbd "M-<f2>") 'bm-show-all))

yet for some reason nothing is persisting. Yes, the folder "bm" does exist but it is sadly empty.

@joodland
Copy link
Owner

I believe use must add the following configuration options.

:demand t

:init
(setq bm-restore-repository-on-load t)

See the end of README.md for complete configuration with use-package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants