Show bookmarks before important files

I access bookmarks far more often than the list of local important
files, so let's skip the usual `C-o` hazzle and have bookmarks right
under point when available.
This commit is contained in:
Daniel Borchmann 2024-06-17 16:20:42 +02:00
parent 028dc91f28
commit f196d6e808
No known key found for this signature in database
GPG Key ID: 784AA8DF0CCDF625

View File

@ -2266,6 +2266,8 @@ eventuelly be set to nil, however)."
;; Taken from `helm-buffers-list' ;; Taken from `helm-buffers-list'
(helm-make-source "Buffers" 'helm-source-buffers) (helm-make-source "Buffers" 'helm-source-buffers)
helm-source-bookmarks
;; If no prefix arg is given, extract files from ;; If no prefix arg is given, extract files from
;; `db/important-documents-path and list them as well ;; `db/important-documents-path and list them as well
(when (and (not arg) (when (and (not arg)
@ -2280,9 +2282,7 @@ eventuelly be set to nil, however)."
file)) file))
(directory-files-recursively search-path "")) (directory-files-recursively search-path ""))
:action '(("Open externally" . db/system-open) :action '(("Open externally" . db/system-open)
("Find file" . find-file))))) ("Find file" . find-file))))))))
helm-source-bookmarks)))
(use-package ace-window (use-package ace-window
:ensure t :ensure t