emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/devicetree-ts-mode 2bbac87f33 04/11: Add README, update


From: ELPA Syncer
Subject: [elpa] externals/devicetree-ts-mode 2bbac87f33 04/11: Add README, update guix.scm.
Date: Tue, 16 Jan 2024 03:58:28 -0500 (EST)

branch: externals/devicetree-ts-mode
commit 2bbac87f336cec0b505d29c0e487a1f129981b5f
Author: Aleksandr Vityazev <avityazew@gmail.com>
Commit: Aleksandr Vityazev <avityazew@gmail.com>

    Add README, update guix.scm.
---
 README.md  | 43 +++++++++++++++++++++++++++++++++++++++++++
 README.org | 41 +++++++++++++++++++++++++++++++++++++++++
 guix.scm   |  9 +++++++++
 3 files changed, 93 insertions(+)

diff --git a/README.md b/README.md
new file mode 100644
index 0000000000..d8f2a20989
--- /dev/null
+++ b/README.md
@@ -0,0 +1,43 @@
+
+
+### Version 0.1
+
+
+# About
+
+Major mode for editing [Devicetree](http://www.devicetree.org/) files.
+
+Features:
+
+-   highlighting;
+-   indentation;
+-   imenu;
+
+
+# Installation
+
+
+## With guix
+
+    guix package -f guix.scm
+
+
+## From source
+
+Clone this repo.
+
+    (use-package graphql-ts-mode
+      :ensure nil
+      :load-path "PATH TO WHICH THE REPOSITORY WAS CLONED"
+      :init
+      (with-eval-after-load 'treesit
+        (add-to-list 'treesit-language-source-alist
+                     '(devicetree 
"https://github.com/joelspadin/tree-sitter-devicetree";))))
+
+This requires a working C compiler.
+
+
+# License
+
+GPLv3
+
diff --git a/README.org b/README.org
new file mode 100644
index 0000000000..2040ab5053
--- /dev/null
+++ b/README.org
@@ -0,0 +1,41 @@
+#+OPTIONS: toc:nil
+
+*** Version 0.1
+
+* About
+
+Major mode for editing [[http://www.devicetree.org/][Devicetree]] files.
+
+Features:
+- highlighting;
+- indentation;
+- imenu;
+
+* Installation
+
+** With guix
+
+#+begin_src bash
+  guix package -f guix.scm
+#+end_src
+
+** From source
+Clone this repo.
+#+begin_src elisp
+  (use-package graphql-ts-mode
+    :ensure nil
+    :load-path "PATH TO WHICH THE REPOSITORY WAS CLONED"
+    :init
+    (with-eval-after-load 'treesit
+      (add-to-list 'treesit-language-source-alist
+                   '(devicetree 
"https://github.com/joelspadin/tree-sitter-devicetree";))))
+#+end_src
+This requires a working C compiler.
+
+* License
+
+GPLv3
+
+# Local Variables:
+# eval: (require 'ox-md)
+# End:
diff --git a/guix.scm b/guix.scm
index 78e674a84a..ff42c2c325 100644
--- a/guix.scm
+++ b/guix.scm
@@ -39,6 +39,14 @@
 
 (define %source-dir (dirname (current-filename)))
 
+(define-public tree-sitter-devicetree
+  ((@@ (gnu packages tree-sitter) tree-sitter-grammar)
+   "devicetree" "Devicetree"
+   "0igkwrlgbwphn8dwj91fy2film2mxz4kjdjnc141kmwi4czglwbq"
+   "0.8.0"
+   #:repository-url "https://github.com/joelspadin/tree-sitter-devicetree";
+   #:license license:expat))
+
 (define-public emacs-devicetree-ts-mode
   (let ((commit (last-commit-hash))
         (revision "0")
@@ -54,6 +62,7 @@
        (list
         #:emacs emacs-next
         #:tests? #f))
+      (propagated-inputs (list tree-sitter-devicetree))
       (home-page "https://git.sr.ht/~akagi/devicetree-ts-mode";)
       (synopsis "Interact with sourcehut")
       (description #f)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]