forked from semiosis/pen.el
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpen-apps.el
61 lines (49 loc) · 1.44 KB
/
pen-apps.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
53
54
55
56
57
58
59
60
61
;; These must come after the above block because the prefix is not yet defined
(require 'helm-sys)
(defun e/broot ()
(interactive)
(term-sps (concat (pen-cmd "cd" default-directory) "; br")))
(defun gambit ()
(interactive)
(term-sps (concat (pen-cmd "cd" default-directory) "; gambit")))
(defun slides (&optional path)
(interactive)
(let ((bpath (get-path nil t)))
(cond
(path
(term-sps (cmd "slides" path)))
((string-match "\\.md$" bpath)
(term-sps (cmd "slides" bpath)))
(t
(term-sps "slides")))))
(defun noted ()
(interactive)
(term-sps (concat (pen-cmd "cd" default-directory) "; noted")))
(defun broot ()
(interactive)
(pen-sps "br" nil nil default-directory))
(defun open-colors ()
(interactive)
(pen-sps "open-colors" nil nil default-directory)
;; (pen-use-vterm
;; (pen-term "open-colors" nil nil default-directory))
)
;; I guess if I need to quickly create tab-indented lists, hmm is the tool
(defun hmm ()
(interactive)
;; Sadly, doesn't work well with eterm
;; hmm is certainly not perfect
;; - C-l while editing creates newlines in the node
;; tmux works best
(pen-nw "hmm" nil nil default-directory)
;; vterm works ok
;; But I have not yet sorted all key bindings
;; Currently not working:
;; - arrow keys
;; - C-h
;; - Delete
;; - C-l messes up the screen
;; (pen-use-vterm
;; (pen-term "h-m-m" nil nil default-directory))
)
(provide 'pen-apps)