I have the following code to set a custom.el
file and load Bookmark+:
(setq custom-file (concat elf-emacs-lib-home-directory "emacs-config/" "custom.el"))
(when (file-exists-p custom-file) (load custom-file :noerror))
(setq bookmark-default-file (substitute-in-file-name "$HOME/.emacs.d/.bookmarks"))
(use-package bookmark+ ;;; Bookmark+: extensions to standard library `bookmark.el'.
:init
(defvar bmkp-last-as-first-bookmark-file)
(defvar bmkp-bmenu-state-file)
(setq bmkp-last-as-first-bookmark-file bookmark-default-file) ;; load the the last-used bookmark file first
(setq bmkp-bmenu-state-file (substitute-in-file-name "$HOME/.emacs.d/.bmk-bmenu-state.el")))
My problem is that I keep getting this in my custom-set-variables:
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(bmkp-last-as-first-bookmark-file "/users/name/.emacs.d/.bookmarks")
How do I prevent this variable from being placed in custom-set-variables
?