branch: elpa/nix-mode
commit 038dcf7b1b8a23a3d5eae0f30ef1b7d8db806605
Author: Matthew Bauer <[email protected]>
Commit: Matthew Bauer <[email protected]>
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 <[email protected]>
+;; 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