-
Notifications
You must be signed in to change notification settings - Fork 32
/
org-fc-hydra.el
52 lines (39 loc) · 1.7 KB
/
org-fc-hydra.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
;;; org-fc-hydra.el --- Hydra for interacting with the SRS -*- lexical-binding: t; -*-
;; Copyright (C) 2020-2024 Leon Rische
;; Author: Leon Rische <[email protected]>
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
;; (at your option) any later version.
;; This program is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;; GNU General Public License for more details.
;; You should have received a copy of the GNU General Public License
;; along with this program. If not, see <https://www.gnu.org/licenses/>.
;;; Commentary:
;;
;; This file contains an example for setting up a hydra to interact
;; with the flashcard system.
;;
;;; Code:
(require 'hydra)
(require 'org-fc)
(defhydra org-fc-hydra ()
("m" org-fc-dashboard "Dashboard" :exit t)
("r" org-fc-review "Start Review" :exit t)
("u" org-fc-update "Update Card")
("t" org-fc-hydra-type/body "Init Type" :exit t)
("q" nil "Quit" :exit t))
(defhydra org-fc-hydra-type ()
("n" org-fc-type-normal-init "Normal" :exit t)
("d" org-fc-type-double-init "Double" :exit t)
("t" org-fc-type-text-input-init "Text Input" :exit t)
("c" (org-fc-type-cloze-init 'deletion) "Deletion" :exit t)
("e" (org-fc-type-cloze-init 'enumeration) "Enum" :exit t)
("s" (org-fc-type-cloze-init 'single) "Single" :exit t)
("x" (org-fc-type-cloze-init 'context) "Context" :exit t)
("q" nil "Quit" :exit t))
;;;; Footer
(provide 'org-fc-hydra)
;;; org-fc-hydra.el ends here