diff --git a/emacs/init.org b/emacs/init.org index a43c461..f7cad98 100755 --- a/emacs/init.org +++ b/emacs/init.org @@ -680,6 +680,18 @@ Enable using the leader key in the agenda view: (general-def org-agenda-mode-map "SPC" leader-map) #+END_SRC +And a global keybinding to open an org file: +#+BEGIN_SRC emacs-lisp + (defun find-org-file (file) + (interactive + (list (ido-completing-read+ + "Find org file: " + (directory-files (agenda-files) t)))) + (find-file file)) + + (leader-def-key "fo" #'find-org-file) +#+END_SRC + ** Exporting *** HTML Export to HTML: