blob: 2627771d3023433827de04c5f09e4716f3063c3a (
plain)
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
|
(defn menu-bar-mode []
(println "menu-bar-mode"))
(defn split-horizontally []
(println "split-horizontally"))
(defn split-vertically []
(println "split-vertically"))
(defn remove-split []
(println "remove-split"))
(defn keyboard-quit []
(println "keyboard-quit"))
(defn gridquiz []
(println "gridquiz"))
(defn letterbox []
(println "letterbox"))
(defn describe-key []
(println "describe-key"))
(defn help []
(println "help"))
(defn customize []
(println "customize"))
(defn move-beginning-of-line []
;(println "focus: " @*focused-widget*)
(.setCaretOffset @*focused-widget* 0))
(defn move-end-of-line []
(.setCaretOffset @*focused-widget* (.getCharCount @*focused-widget*)))
(def *key-bindings*
{;"M-x" #'mode-line-prompt
"C-xh" #'split-vertically
"C-xv" #'split-horizontally
"C-xr" #'remove-split
"C-a" #'move-beginning-of-line
"C-e" #'move-end-of-line})
|