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

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

[nongnu] elpa/nix-mode 038dcf7b1b 147/500: Cleanup


From: ELPA Syncer
Subject: [nongnu] elpa/nix-mode 038dcf7b1b 147/500: Cleanup
Date: Sat, 29 Jan 2022 08:26:58 -0500 (EST)

branch: elpa/nix-mode
commit 038dcf7b1b8a23a3d5eae0f30ef1b7d8db806605
Author: Matthew Bauer <mjbauer95@gmail.com>
Commit: Matthew Bauer <mjbauer95@gmail.com>

    Cleanup
    
    nix-sh.el was not working and it’s duplicated by nix-mode-mmm anyway.
---
 nix-mode-mmm.el |  8 +++++++-
 nix-sh.el       | 27 ---------------------------
 2 files changed, 7 insertions(+), 28 deletions(-)

diff --git a/nix-mode-mmm.el b/nix-mode-mmm.el
index 22e43ca4dc..6c30b67c56 100644
--- a/nix-mode-mmm.el
+++ b/nix-mode-mmm.el
@@ -1,4 +1,10 @@
-;;; nix-mode-mmm --- Summary
+;;; nix-shell.el -- support for MMM in nix-mode -*- lexical-binding: t -*-
+
+;; Author: Matthew Bauer <mjbauer95@gmail.com>
+;; Homepage: https://github.com/matthewbauer/nix-mode
+;; Keywords: nix
+
+;; This file is NOT part of GNU Emacs.
 
 ;;; Commentary:
 
diff --git a/nix-sh.el b/nix-sh.el
deleted file mode 100644
index 6953290b18..0000000000
--- a/nix-sh.el
+++ /dev/null
@@ -1,27 +0,0 @@
-(require 'mmm-auto)
-
-(defun nix-sh-extra-phases (name)
-  (list (concat name "Phase") (concat "pre" (capitalize name))
-        (concat "post" (capitalize name))))
-
-(let* ((nix-sh-all-phases
-        (apply #'append
-               (mapcar 'nix-sh-extra-phases
-                       '("unpack" "patch" "configure" "build"
-                         "check" "install" "fixup"
-                         "dist"))))
-       (nix-sh-start-regexp
-        (concat (mmm-regexp-opt nix-sh-all-phases t) " = ''")))
-  (mmm-add-group 'nix-sh
-                 '((sh-command
-                    :submode sh-mode
-                    :face mmm-code-submode-face
-                    :front "buildPhase = ''"
-                    :back "''"
-                    )))
-  )
-
-(mmm-add-mode-ext-class 'nix-mode "\\.nix\\'" 'nix-sh)
-
-(provide 'nix-sh)
-;;; nix-mode-mmm.el ends here



reply via email to

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