From 4f80f66d3ff6c0b78c6275c575ef3d9012c7b223 Mon Sep 17 00:00:00 2001 From: Pierre Neidhardt Date: Sun, 21 Feb 2021 17:18:01 +0100 Subject: [PATCH] Emacs: Set bookmark path and always save. --- .emacs.d/lisp/main.el | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.emacs.d/lisp/main.el b/.emacs.d/lisp/main.el index e7ed7a4e..84649788 100644 --- a/.emacs.d/lisp/main.el +++ b/.emacs.d/lisp/main.el @@ -62,6 +62,13 @@ ediff-window-setup-function 'ediff-setup-windows-plain ediff-split-window-function 'split-window-horizontally) +;; Bookmarks +(setq bookmark-save-flag 1) +(let ((personal-bookmarks (expand-file-name "bookmarks/emacs-bookmarks.el" + (getenv "PERSONAL")))) + (when (file-exists-p personal-bookmarks) + (setq bookmark-default-file personal-bookmarks))) + ;;; Remember last cursor position. (save-place-mode) ;;; When the daemon is killed abruptly, places are not saved. Adding this hook