bm package added for visual bookmarks

This commit is contained in:
Sameer Rahmani 2016-11-21 14:14:37 +03:30
parent ec82125b62
commit c1a699d9ef
2 changed files with 24 additions and 0 deletions

View File

@ -11,6 +11,8 @@
(depends-on 'yasnippet)
(depends-on 'hl-sexp)
(depends-on 'smart-mode-line)
(with-ability bookmarks
(depends-on 'bm))
(with-ability git
(depends-on 'diff-hl)

View File

@ -36,6 +36,28 @@
"Development plugin initialization."
(message "Initializing 'development' extension.")
(ability bookmarks ()
(require 'bm)
(cheatsheet-add :group '--Development--
:key "M-p"
:description "Toggle bookmarks")
(cheatsheet-add :group '--Development--
:key "M-]"
:description "Jump to next bookmark")
(cheatsheet-add :group '--Development--
:key "M-["
:description "Jump to previous bookmark")
(global-set-key (kbd "M-p") 'bm-toggle)
(global-set-key (kbd "M-]") 'bm-next)
(global-set-key (kbd "M-[") 'bm-previous)
(setq bm-in-lifo-order t)
(setq bm-cycle-all-buffers t))
(ability hl ()
"Highligh the current block of code"
(require 'hl-sexp)