[Utils] Sort bookmarks after adding a new one

This commit is contained in:
Daniel - 2019-01-27 09:24:01 +01:00
parent 7d666e146d
commit be7625830c
Signed by: dbo
GPG Key ID: 4F63DB96D45AA9C6
1 changed files with 2 additions and 1 deletions

View File

@ -539,7 +539,8 @@ it."
(filename . ,location)
(handler . ,#'(lambda (arg)
(funcall handler (cdr (assoc 'filename arg))))))
bookmark-alist))
bookmark-alist)
(setq bookmark-alist (cl-sort bookmark-alist #'string-lessp :key #'car)))
(defun db/bookmark-add-external (location name)
"Add NAME as bookmark to LOCATION that is opened by the operating system."