-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
20 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,8 +5,6 @@ | |
;; Author: Kimi Ma <[email protected]> | ||
;; URL: https://github.com/kimim/chatu | ||
;; Keywords: multimedia convenience | ||
;; Version: 0.1 | ||
;; Package-Requires: ((org "9.6.6") (emacs "28.1")) | ||
|
||
;; This file is NOT part of GNU Emacs. | ||
|
||
|
@@ -32,15 +30,15 @@ | |
;;; Code: | ||
|
||
(defun chatu-babashka-script (keyword-plist) | ||
"Open input, KEYWORD-PLIST contains parameters from the chatu | ||
line." | ||
"Open input. | ||
KEYWORD-PLIST contains parameters from the chatu line." | ||
(let ((input-path (plist-get keyword-plist :input-path))) | ||
(format "bb %s" | ||
(shell-quote-argument input-path)))) | ||
|
||
(defun chatu-babashka-open (keyword-plist) | ||
"Open input file, KEYWORD-PLIST contains parameters from the | ||
chatu line." | ||
"Open input file. | ||
KEYWORD-PLIST contains parameters from the chatu line." | ||
(interactive) | ||
(find-file-other-window | ||
(plist-get keyword-plist :input-path))) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,8 +5,6 @@ | |
;; Author: Kimi Ma <[email protected]> | ||
;; URL: https://github.com/kimim/chatu | ||
;; Keywords: multimedia convenience | ||
;; Version: 0.1 | ||
;; Package-Requires: ((org "9.6.6") (emacs "28.1")) | ||
|
||
;; This file is NOT part of GNU Emacs. | ||
|
||
|
@@ -32,17 +30,17 @@ | |
;;; Code: | ||
|
||
(defun chatu-curl-script (keyword-plist) | ||
"Get conversion script. KEYWORD-PLIST contains parameters from | ||
the chatu line." | ||
"Get conversion script. | ||
KEYWORD-PLIST contains parameters from the chatu line." | ||
(let* ((input (plist-get keyword-plist :input)) | ||
(output-path (plist-get keyword-plist :output-path))) | ||
(format "curl -o %s %s" | ||
(shell-quote-argument output-path) | ||
(shell-quote-argument input)))) | ||
|
||
(defun chatu-curl-open (keyword-plist) | ||
"Open curl link. KEYWORD-PLIST contains parameters from the | ||
chatu line." | ||
"Open curl link. | ||
KEYWORD-PLIST contains parameters from the chatu line." | ||
(interactive) | ||
(let ((link (plist-get keyword-plist :input))) | ||
(cond | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,8 +5,6 @@ | |
;; Author: Kimi Ma <[email protected]> | ||
;; URL: https://github.com/kimim/chatu | ||
;; Keywords: multimedia convenience | ||
;; Version: 0.1 | ||
;; Package-Requires: ((org "9.6.6") (emacs "28.1")) | ||
|
||
;; This file is NOT part of GNU Emacs. | ||
|
||
|
@@ -36,8 +34,8 @@ | |
(file-name-with-extension path "drawio")) | ||
|
||
(defun chatu-drawio-script (keyword-plist) | ||
"Get conversion script. KEYWORD-PLIST contains parameters from | ||
the chatu line." | ||
"Get conversion script. | ||
KEYWORD-PLIST contains parameters from the chatu line." | ||
(let* ((input-path | ||
(chatu-drawio-add-extention | ||
(plist-get keyword-plist :input-path))) | ||
|
@@ -56,8 +54,8 @@ | |
(shell-quote-argument output-path-pdf)))) | ||
|
||
(defun chatu-drawio-open (keyword-plist) | ||
"Open .drawio file. KEYWORD-PLIST contains parameters from the | ||
chatu line." | ||
"Open .drawio file. | ||
KEYWORD-PLIST contains parameters from the chatu line." | ||
(interactive) | ||
(let ((path (chatu-drawio-add-extention | ||
(plist-get keyword-plist :input-path)))) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,8 +5,6 @@ | |
;; Author: Kimi Ma <[email protected]> | ||
;; URL: https://github.com/kimim/chatu | ||
;; Keywords: multimedia convenience | ||
;; Version: 0.1 | ||
;; Package-Requires: ((org "9.6.6") (emacs "28.1")) | ||
|
||
;; This file is NOT part of GNU Emacs. | ||
|
||
|
@@ -31,13 +29,15 @@ | |
|
||
;;; Code: | ||
|
||
(require 'plantuml-mode) | ||
|
||
(defun chatu-plantuml-add-extention (path) | ||
"Change to default extension for PATH of the input file." | ||
(file-name-with-extension path "puml")) | ||
|
||
(defun chatu-plantuml-script (keyword-plist) | ||
"Get conversion script. KEYWORD-PLIST contains parameters from | ||
the chatu line." | ||
"Get conversion script. | ||
KEYWORD-PLIST contains parameters from the chatu line." | ||
(let ((page (plist-get keyword-plist :page))) | ||
(concat "java -jar " | ||
plantuml-jar-path | ||
|
@@ -49,8 +49,8 @@ | |
(plist-get keyword-plist :output-path)))) | ||
|
||
(defun chatu-plantuml-open (keyword-plist) | ||
"Open .puml file. KEYWORD-PLIST contains parameters from the | ||
chatu line." | ||
"Open .puml file. | ||
KEYWORD-PLIST contains parameters from the chatu line." | ||
(interactive) | ||
(find-file-other-window | ||
(chatu-plantuml-add-extention | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters