Browse Source

Made bookmarks into its own configuration block

master
marc 4 years ago
parent
commit
21081a85ab
1 changed files with 18 additions and 1 deletions
  1. 19
      init.org

19
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"))

Loading…
Cancel
Save