From 21081a85abc7289dac40b64dcfd8bbb526e30fbf Mon Sep 17 00:00:00 2001 From: marc Date: Mon, 23 Mar 2020 10:25:11 +0100 Subject: [PATCH] Made bookmarks into its own configuration block --- init.org | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/init.org b/init.org index 9d06b21..4defbd9 100644 --- a/init.org +++ b/init.org @@ -126,6 +126,24 @@ This function updates init.el whenever changes in init.org are made. The update "Is emacs running at work on the remote system?") #+END_SRC +Bookmarks +Usage: +- C-x r m (bookmark-set): add bookmark +- C-x r l (list-bookmark): list bookmarks +- C-x r b (bookmark-jump): open bookmark + +Edit bookmarks (while in bookmark file): +- d: mark current item +- x: delete marked items +- r: rename current item +- s: save changes + +#+begin_src emacs-lisp +(use-package bookmark + :custom + (bookmark-default-file (concat MY--PATH_USER_LOCAL "bookmarks"))) +#+end_src + #+BEGIN_SRC emacs-lisp (defvar MY--PATH_USER_LOCAL (expand-file-name "~/.emacs.d/user-local/")) (defvar MY--PATH_USER_GLOBAL (expand-file-name "~/.emacs.d/user-global/")) @@ -139,7 +157,6 @@ This function updates init.el whenever changes in init.org are made. The update (defconst MY--PATH_ORG_FILES_MOBILE nil) ;; hacky way to prevent "free variable" compiler error (defconst MY--PATH_ORG_JOURNAL nil) ;; hacky way to prevent "free variable" compiler error (defconst MY--PATH_START "p:/Eigene Dateien/Notizen/")) -(setq bookmark-default-file (concat MY--PATH_USER_LOCAL "bookmarks")) (setq recentf-save-file (concat MY--PATH_USER_LOCAL "recentf")) (setq custom-file (concat MY--PATH_USER_LOCAL "custom.el")) ;; don't spam init.e with saved customization settings (setq abbrev-file-name (concat MY--PATH_USER_GLOBAL "abbrev_defs"))