[emacs] Add new helper shortcut to directly select a Org file

This commit is contained in:
Sebastian Schulze 2019-10-18 16:44:02 +02:00
parent 8187dcd10f
commit a4c1e62357
Signed by: bascht
GPG Key ID: 5BCB1D3B4D38A35A
1 changed files with 6 additions and 1 deletions

View File

@ -385,12 +385,17 @@ you should place your code here."
(spacemacs/set-leader-keys "ok" 'org-clock-goto)
(spacemacs/set-leader-keys "or" 'org-refile-goto-last-stored)
(spacemacs/set-leader-keys "od" 'my-daily-review)
(spacemacs/set-leader-keys "ob" 'bascht/go-to-org-file)
(spacemacs/set-leader-keys "glu" 'mu4e-view-go-to-url)
(spacemacs/set-leader-keys "drr" 'rake)
(spacemacs/set-leader-keys "drl" 'rake-rerun)
(spacemacs/toggle-hungry-delete-on)
(defun bascht/go-to-org-file ()
"Jump to one of my Agenda files via helm"
(interactive)
(helm-find-files-1 "~/Documents/Zettelkasten/"))
(with-eval-after-load 'org
(if
(or (s-starts-with? "zog" system-name) (s-starts-with? "kandalingo" system-name))