summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2023-08-20 09:20:23 +0200
committerAlan Pearce2023-08-20 10:14:52 +0200
commiteb8f8de547ae5eaa4a8923953486fe2e1050e26d (patch)
treefffd1c7d2fdce05d60e422110032ebb25425f934
downloadpolyglot.el-eb8f8de547ae5eaa4a8923953486fe2e1050e26d.tar.lz
polyglot.el-eb8f8de547ae5eaa4a8923953486fe2e1050e26d.tar.zst
polyglot.el-eb8f8de547ae5eaa4a8923953486fe2e1050e26d.zip
Initial commit HEAD main
-rw-r--r--.envrc1
-rw-r--r--.gitignore1
-rw-r--r--Cask6
-rw-r--r--flake.lock77
-rw-r--r--flake.nix29
-rw-r--r--polyglot.el36
6 files changed, 150 insertions, 0 deletions
diff --git a/.envrc b/.envrc
new file mode 100644
index 0000000..3550a30
--- /dev/null
+++ b/.envrc
@@ -0,0 +1 @@
+use flake
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..176df11
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/.cask
diff --git a/Cask b/Cask
new file mode 100644
index 0000000..60fd4b8
--- /dev/null
+++ b/Cask
@@ -0,0 +1,6 @@
+(source gnu)
+(source melpa)
+
+(package-file "polyglot.el")
+
+(files "*.el")
diff --git a/flake.lock b/flake.lock
new file mode 100644
index 0000000..016a362
--- /dev/null
+++ b/flake.lock
@@ -0,0 +1,77 @@
+{
+  "nodes": {
+    "flake-compat": {
+      "flake": false,
+      "locked": {
+        "lastModified": 1673956053,
+        "narHash": "sha256-4gtG9iQuiKITOjNQQeQIpoIB6b16fm+504Ch3sNKLd8=",
+        "owner": "edolstra",
+        "repo": "flake-compat",
+        "rev": "35bb57c0c8d8b62bbfd284272c928ceb64ddbde9",
+        "type": "github"
+      },
+      "original": {
+        "owner": "edolstra",
+        "repo": "flake-compat",
+        "type": "github"
+      }
+    },
+    "flake-utils": {
+      "inputs": {
+        "systems": "systems"
+      },
+      "locked": {
+        "lastModified": 1689068808,
+        "narHash": "sha256-6ixXo3wt24N/melDWjq70UuHQLxGV8jZvooRanIHXw0=",
+        "owner": "numtide",
+        "repo": "flake-utils",
+        "rev": "919d646de7be200f3bf08cb76ae1f09402b6f9b4",
+        "type": "github"
+      },
+      "original": {
+        "owner": "numtide",
+        "repo": "flake-utils",
+        "type": "github"
+      }
+    },
+    "nixpkgs": {
+      "locked": {
+        "lastModified": 1692515853,
+        "narHash": "sha256-wK3Dn8ZnpriUskO7krCslzY8DbfWS0+hLT4YPK3kzSY=",
+        "owner": "NixOS",
+        "repo": "nixpkgs",
+        "rev": "93518bbd3d14a30cbba5d74c64e1ef0f62d4e910",
+        "type": "github"
+      },
+      "original": {
+        "owner": "NixOS",
+        "repo": "nixpkgs",
+        "type": "github"
+      }
+    },
+    "root": {
+      "inputs": {
+        "flake-compat": "flake-compat",
+        "flake-utils": "flake-utils",
+        "nixpkgs": "nixpkgs"
+      }
+    },
+    "systems": {
+      "locked": {
+        "lastModified": 1681028828,
+        "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
+        "owner": "nix-systems",
+        "repo": "default",
+        "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
+        "type": "github"
+      },
+      "original": {
+        "owner": "nix-systems",
+        "repo": "default",
+        "type": "github"
+      }
+    }
+  },
+  "root": "root",
+  "version": 7
+}
diff --git a/flake.nix b/flake.nix
new file mode 100644
index 0000000..b1ca85d
--- /dev/null
+++ b/flake.nix
@@ -0,0 +1,29 @@
+{
+  description = "Emacs package containing modes for a set of file types";
+  inputs.nixpkgs.url = "github:NixOS/nixpkgs";
+  inputs.flake-utils.url = "github:numtide/flake-utils";
+  inputs.flake-compat = {
+    url = "github:edolstra/flake-compat";
+    flake = false;
+  };
+
+  outputs =
+    { self
+    , nixpkgs
+    , flake-utils
+    , flake-compat
+    , ...
+    }:
+    flake-utils.lib.eachDefaultSystem (system:
+    let
+      pkgs = nixpkgs.legacyPackages.${system};
+    in
+    {
+      devShell = pkgs.mkShell {
+        buildInputs = with pkgs;
+          [
+            emacsPackages.cask
+          ];
+      };
+    });
+}
diff --git a/polyglot.el b/polyglot.el
new file mode 100644
index 0000000..140938e
--- /dev/null
+++ b/polyglot.el
@@ -0,0 +1,36 @@
+;;; polyglot.el --- Support for many languages  -*- lexical-binding: t; -*-
+
+;; Copyright (C) 2023 Alan Pearce
+
+;; Author: Alan Pearce <alan@alanpearce.eu>
+;; Created: 20 Aug 2023
+;; Version: 0.1
+
+;; Keywords: languages
+;; URL: https://codeberg.org/alanpearce/polyglot.el
+
+;; This file is not part of GNU Emacs.
+
+;; 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 2 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 <http://www.gnu.org/licenses/>.
+
+;;; Commentary:
+
+;; polyglot.el is a virtual package which depends on many packages
+;; providing major modes for editing files
+
+;;; Code:
+
+(provide 'polyglot)
+
+;;; polyglot.el ends here