branch: elpa/nix-mode
commit 64d615d6288d93fc91b29d26cf2a5c925b86fe42
Author: Matthew Bauer <[email protected]>
Commit: Matthew Bauer <[email protected]>

    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