Add configuration and key bindings for bm package

This commit is contained in:
Daniel - 2020-09-12 11:14:37 +02:00
parent 9e8ee7f47f
commit 331272afc1
No known key found for this signature in database
GPG Key ID: 1C7071A75BB72D64
1 changed files with 22 additions and 1 deletions

23
init.el
View File

@ -173,7 +173,9 @@
(bind-key "<f5>" #'rgrep)
(bind-key "<f6>" #'hydra-zoom/body)
(bind-key "<f7>" #'dictcc)
(bind-key "<f8>" #'counsel-locate)
(bind-key "<f8>" #'bm-toggle)
(bind-key "<C-f8>" #'bm-next)
(bind-key "<C-S-f8>" #'bm-previous)
(bind-key "<f9>" #'helm-org-agenda-files-headings)
(bind-key "C-," #'mc/skip-to-previous-like-this)
(bind-key "C-." #'mc/skip-to-next-like-this)
@ -2115,6 +2117,25 @@ With given ARG, display files in `db/important-document-path."
avy-goto-word-or-subword-1
avy-goto-line))
(use-package bm
;; Taken from https://protesilaos.com/dotemacs/ and slightly adapted
:ensure t
:commands (bm-toggle bm-next bm-previous bm-toggle-buffer-persistence)
:init (setq bm-restore-repository-on-load t
bm-annotate-on-create nil
bm-buffer-persistence t
bm-cycle-all-buffers t
bm-goto-position nil
bm-highlight-style 'bm-highlight-line-and-fringe
bm-marker 'bm-marker-right
bm-in-lifo-order nil
bm-recenter t
bm-repository-file "~/.emacs.d/bm-bookmarks"
bm-repository-size 100
bm-show-annotations t
bm-wrap-immediately t
bm-wrap-search t)
(use-package dumb-jump
:commands (dumb-jump-go-other-window
dumb-jump-go