Please explain why you do not want that user option to be saved in your
custom-file. That's the logical place for it. User options are saved in
custom-file if it exists, or in your init file otherwise.
If you really do not want it to be saved there , and you do not want it to be customizable (using Customize), you can do this:
(put 'bmkp-last-as-first-bookmark-file 'standard-value nil)
You can still set it using, say,
setq. And you can still save it in some other way.
Update after comments -
I see what's happening. The point of this option is to let you choose to use start a new Emacs session using the last bookmark file that was used in your last Emacs session. If you want that then that value needs to be saved. It is saved in your
You are anyway not saving that information in any way --
use-package and your use of
use-package do not do anything like that.
All you are doing is setting that option value to the value of
bookmark-default-file each time you start an Emacs session.
If you want to use the value of
bookmark-default-file each time you start an Emacs session then option
bmkp-last-as-first-bookmark-file should be
nil. Customize the value to be
nil and your problem should go away. The behavior you will get will be to use the same bookmark file each time you start Emacs (more precisely, the value of
bookmark-default-file, which you could of course change from one session to another in some way).
Here is the doc of option
bmkp-last-as-first-bookmark-file. Please pay special attention to what I've put in bold. Let me know, if you still have a question.
bmkp-last-as-first-bookmark-file is a variable defined in
Its value is "..."
Whether to use the last-used bookmark file as the first used.
nil then Emacs always uses the value of
the initial bookmark file, in any given session.
nil, Emacs uses the last bookmark file you used, in the last
Emacs session. If none was recorded then it uses
bookmark-default-file. The particular non-
nil value must be an
absolute file name (possibly containing
~) - it is not expanded).
NOTE: A non-
nil option value is overwritten by Bookmark+, so that it
becomes the last-used bookmark file. A
nil value is never
You can customize this variable.