From 850177421057284a046f862847bb6c819e703da9 Mon Sep 17 00:00:00 2001 From: Riyyi Date: Thu, 30 Jan 2020 03:10:35 +0100 Subject: [PATCH] Add ido completion to delete bookmark --- .emacs.d/config.org | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.emacs.d/config.org b/.emacs.d/config.org index 9054d08..0cf2d7a 100644 --- a/.emacs.d/config.org +++ b/.emacs.d/config.org @@ -602,6 +602,13 @@ Functions that only use built-in Emacs functionality. (bookmark-get-bookmark (ido-completing-read "Jump to bookmark: " (bookmark-all-names))))) + (defun bookmark-delete-ido () + "Uses ido to search for the bookmark to delete" + (interactive) + (bookmark-delete + (bookmark-get-bookmark + (ido-completing-read "Delete bookmark: " (bookmark-all-names))))) + (defun config-visit () "Config edit." (interactive) @@ -921,7 +928,7 @@ General.el ~leader key binds. "b k" '(kill-current-buffer :which-key "Kill buffer") "b l" '(next-buffer :which-key "Next buffer") "b m" '(bookmark-set :which-key "Make bookmark") - "b M" '(bookmark-delete :which-key "Delete bookmark") + "b M" '(bookmark-delete-ido :which-key "Delete bookmark") "b n" '(evil-buffer-new :which-key "New empty buffer") "b r" '(revert-buffer :which-key "Revert buffer") "b s" '(basic-save-buffer :which-key "Save buffer")