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

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

[nongnu] elpa/nix-mode 64d615d628 096/500: Add nix-mode-mmm


From: ELPA Syncer
Subject: [nongnu] elpa/nix-mode 64d615d628 096/500: Add nix-mode-mmm
Date: Sat, 29 Jan 2022 08:26:40 -0500 (EST)

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

    Add nix-mode-mmm
---
 nix-mode-mmm.el | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/nix-mode-mmm.el b/nix-mode-mmm.el
new file mode 100644
index 0000000000..acfc8fef15
--- /dev/null
+++ b/nix-mode-mmm.el
@@ -0,0 +1,23 @@
+;;; nix-mode-mmm --- Summary
+
+;;; Commentary:
+
+;;; Code:
+
+(require 'mmm-mode)
+
+(mmm-add-group 'nix-sh
+ '((sh-command
+    :submode sh-mode
+    :face mmm-output-submode-face
+    :front "''"
+    :back "''"
+    :include-front t
+    :front-offset 2
+    )))
+
+(setq mmm-global-mode 'maybe)
+(mmm-add-mode-ext-class 'nix-mode "\\.nix\\'" 'nix-sh)
+
+(provide 'nix-mode-mmm)
+;;; nix-mode-mmm.el ends here



reply via email to

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