diff options
| author | Jakob L. Kreuze | 2019-03-13 09:50:52 -0400 |
|---|---|---|
| committer | Jakob L. Kreuze | 2019-03-13 09:50:52 -0400 |
| commit | 49723b4fd52a12c95f1e5a261f104b864ea4d573 (patch) | |
| tree | 4b8ffd5a78769d9d7c157b6317a9ea33297f9f8f | |
| parent | 7dee224ececa4b784a0a1e53e5d4c0a94eeb02a9 (diff) | |
Add a keybinding for getting quickly starting a drill session
| -rw-r--r-- | jakob.org | 17 |
1 files changed, 15 insertions, 2 deletions
@@ -1226,7 +1226,20 @@ the SRS algorithm. #+BEGIN_SRC elisp :init - (setq org-drill-forgetting-index 100)) + (setq org-drill-forgetting-index 100) +#+END_SRC + +Set up a keybinding for getting quickly starting a drill session. + +#+BEGIN_SRC elisp + :bind + ("<f11>" . (lambda () + (interactive) + (let* ((drill-directory (concat notes-directory "/" "Drill")) + (path (-first #'(lambda (path) (s-ends-with-p ".org" path)) + (directory-files drill-directory t)))) + (find-file path) + (org-drill))))) #+END_SRC **** Workaround @@ -1875,7 +1888,7 @@ Set up [[company]]. (setq jedi:complete-on-dot t) (setq jedi:tooltip-show nil) - :config + :init (when-all-loaded company (add-to-list 'company-backends 'company-jedi))) #+END_SRC |