Emacs: Bookmark Init

By Xah Lee. Date: .

Auto-Save Bookmark

Emacs: Bookmark file is automatically saved when emacs quit, since Emacs 24.4 (Released 2014-10)

bookmark-save-flag
variable. the value specify whether to auto-save the bookmark file.
  • nil → means don't auto save.
  • t → means save when emacs quit.
  • number → 1 means save after 1 change. 2 means save after 2 changes. etc.

Since Emacs 24.4 (Released 2014-10) , the default value is t.

〔see Emacs: Show Variable Value

put this in your Emacs Init File:

;; save bookmark on change
(setq bookmark-save-flag 1)

Open Bookmark File on Emacs Start

put this in your Emacs Init File:

(setq inhibit-splash-screen t)
(require 'bookmark)
(list-bookmarks)
(switch-to-buffer "*Bookmark List*")

Reference

Emacs Bookmark