[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
55/64: Prepare nix-mode to be uploaded to marmalade
From: |
Ludovic Courtès |
Subject: |
55/64: Prepare nix-mode to be uploaded to marmalade |
Date: |
Mon, 05 Jan 2015 16:39:11 +0000 |
civodul pushed a commit to branch nix
in repository guix.
commit 36662eb5629c31cfd1b8472c9b7eb136b3937a4d
Author: Ricky Elrod <address@hidden>
Date: Sun May 11 18:57:53 2014 -0400
Prepare nix-mode to be uploaded to marmalade
Signed-off-by: Ricky Elrod <address@hidden>
---
misc/emacs/nix-mode.el | 23 ++++++++++++++---------
1 files changed, 14 insertions(+), 9 deletions(-)
diff --git a/misc/emacs/nix-mode.el b/misc/emacs/nix-mode.el
index 986edcf..2c45d68 100644
--- a/misc/emacs/nix-mode.el
+++ b/misc/emacs/nix-mode.el
@@ -1,3 +1,9 @@
+;;; nix-mode.el --- Major mode for editing Nix expressions.
+
+;; Author: Eelco Dolstra
+;; URL: https://github.com/NixOS/nix/tree/master/misc/emacs
+;; Version: 1.0
+
(defun nix-mode ()
"Major mode for editing Nix expressions.
@@ -21,9 +27,9 @@ The hook `nix-mode-hook' is run when Nix mode is started.
"
(interactive)
-
+
(kill-all-local-variables)
-
+
(setq major-mode 'nix-mode)
(setq mode-name "Nix")
@@ -53,9 +59,8 @@ The hook `nix-mode-hook' is run when Nix mode is started.
(setq paragraph-start "[ \t]*\\(#+[ \t]*\\)?$")
(make-local-variable 'paragraph-separate)
(setq paragraph-separate paragraph-start)
-
- (run-hooks 'nix-mode-hook)
- )
+
+ (run-hooks 'nix-mode-hook))
(defvar nix-mode-map nil
@@ -83,8 +88,7 @@ The hook `nix-mode-hook' is run when Nix mode is started.
("<[a-zA-Z0-9._\\+-]+\\(/[a-zA-Z0-9._\\+-]+\\)*>"
. font-lock-constant-face)
("[a-zA-Z0-9._\\+-]*\\(/[a-zA-Z0-9._\\+-]+\\)+"
- . font-lock-constant-face)
- ))
+ . font-lock-constant-face)))
(defvar nix-mode-syntax-table nil
@@ -97,8 +101,7 @@ The hook `nix-mode-hook' is run when Nix mode is started.
(modify-syntax-entry ?/ ". 14" nix-mode-syntax-table)
(modify-syntax-entry ?* ". 23" nix-mode-syntax-table)
(modify-syntax-entry ?# "< b" nix-mode-syntax-table)
- (modify-syntax-entry ?\n "> b" nix-mode-syntax-table)
- ))
+ (modify-syntax-entry ?\n "> b" nix-mode-syntax-table)))
(defun nix-indent-line ()
@@ -111,3 +114,5 @@ The hook `nix-mode-hook' is run when Nix mode is started.
(setq auto-mode-alist (cons '("\\.nix.in\\'" . nix-mode) auto-mode-alist))
(provide 'nix-mode)
+
+;;; nix-mode.el ends here
- 48/64: Don't install Upstart job on Fedora, (continued)
- 48/64: Don't install Upstart job on Fedora, Ludovic Courtès, 2015/01/05
- 51/64: Really fix the RPM builds, Ludovic Courtès, 2015/01/05
- 50/64: Fix RPM build, Ludovic Courtès, 2015/01/05
- 53/64: fix typo, Ludovic Courtès, 2015/01/05
- 52/64: Shortcut already-hardlinked files, Ludovic Courtès, 2015/01/05
- 54/64: nix-instantiate --eval: Apply auto-arguments if the result is a function, Ludovic Courtès, 2015/01/05
- 47/64: Fix Debian tests, Ludovic Courtès, 2015/01/05
- 60/64: Merge branch 'master' of github.com:wmertens/nix, Ludovic Courtès, 2015/01/05
- 58/64: Use the inodes given by readdir directly, Ludovic Courtès, 2015/01/05
- 57/64: Remove redundant code, Ludovic Courtès, 2015/01/05
- 55/64: Prepare nix-mode to be uploaded to marmalade,
Ludovic Courtès <=
- 56/64: Preload linked hashes to speed up lookups, Ludovic Courtès, 2015/01/05
- 63/64: lvlInfo -> lvlTalkative, Ludovic Courtès, 2015/01/05
- 42/64: When running as root, use build users by default, Ludovic Courtès, 2015/01/05
- 59/64: Shortcut store files before lstat, Ludovic Courtès, 2015/01/05
- 64/64: Merge commit '8d5f472f2c49c79a0d3ae2e506f4d4d76224b328' into nix, Ludovic Courtès, 2015/01/05
- 61/64: Remove tab, Ludovic Courtès, 2015/01/05
- 62/64: nix-store --optimise: Remove bogus statistics, Ludovic Courtès, 2015/01/05