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

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

[nongnu] elpa/nix-mode d1650d795c 151/500: Cleanup documentation


From: ELPA Syncer
Subject: [nongnu] elpa/nix-mode d1650d795c 151/500: Cleanup documentation
Date: Sat, 29 Jan 2022 08:27:01 -0500 (EST)

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

    Cleanup documentation
---
 nix-company.el       | 3 +--
 nix-format.el        | 3 +--
 nix-mode.el          | 8 +-------
 nix-prettify-mode.el | 5 ++---
 nix-repl.el          | 5 +++--
 nix-shell.el         | 7 +++++++
 6 files changed, 15 insertions(+), 16 deletions(-)

diff --git a/nix-company.el b/nix-company.el
index faddd7c15f..a1b589abf5 100644
--- a/nix-company.el
+++ b/nix-company.el
@@ -1,5 +1,4 @@
-;; -*- lexical-binding: t -*-
-;;; nix-company.el --- Company support for Nix
+;;; nix-company.el --- Company support for Nix -*- lexical-binding: t -*-
 
 ;; This file is NOT part of GNU Emacs.
 
diff --git a/nix-format.el b/nix-format.el
index b0b0b23f90..7c5005ae3f 100644
--- a/nix-format.el
+++ b/nix-format.el
@@ -1,5 +1,4 @@
-;; -*- lexical-binding: t -*-
-;;; nix-format.el --- Nix formatter
+;;; nix-format.el --- Nix formatter -*- lexical-binding: t -*-
 
 ;; This file is NOT part of GNU Emacs.
 
diff --git a/nix-mode.el b/nix-mode.el
index d7acf5369d..c6f31c6e3c 100644
--- a/nix-mode.el
+++ b/nix-mode.el
@@ -1,5 +1,4 @@
-;; -*- lexical-binding: t -*-
-;;; nix-mode.el --- Major mode for editing Nix expressions
+;;; nix-mode.el --- Major mode for editing .nix files -*- lexical-binding: t 
-*-
 
 ;; Author: Eelco Dolstra
 ;; Maintainer: Matthew Bauer <mjbauer95@gmail.com>
@@ -479,10 +478,5 @@ The hook `nix-mode-hook' is run when Nix mode is started.
   (add-to-list 'auto-mode-alist '("\\.nix\\'" . nix-mode))
   (add-to-list 'auto-mode-alist '("\\.nix.in\\'" . nix-mode)))
 
-(with-eval-after-load "projectile"
-  (projectile-register-project-type 'nix '("default.nix")
-                                    "nix-build"))
-
 (provide 'nix-mode)
-
 ;;; nix-mode.el ends here
diff --git a/nix-prettify-mode.el b/nix-prettify-mode.el
index 9f86056307..3d17670e72 100644
--- a/nix-prettify-mode.el
+++ b/nix-prettify-mode.el
@@ -1,5 +1,4 @@
-;; -*- lexical-binding: t -*-
-;;; nix-prettify.el --- Prettify Nix store file names
+;;; nix-prettify.el -- Prettify Nix store file names  -*- lexical-binding: t 
-*-
 
 ;; Copyright © 2014, 2015 Alex Kost <alezost@gmail.com>
 ;; Modified by Matthew Bauer for use in nix-mode
@@ -20,7 +19,7 @@
 ;; replaced with '/gnu/store/…-foo-0.1' in the current buffer.  There is
 ;; also `global-nix-prettify-mode' for global prettifying.
 
-;; To install, add the following to your emacs init file:
+;; To install, add the following to your Emacs init file:
 ;;
 ;;   (add-to-list 'load-path "/path/to/dir-with-nix-prettify")
 ;;   (autoload 'nix-prettify-mode "nix-prettify" nil t)
diff --git a/nix-repl.el b/nix-repl.el
index ff5f9899de..40d7c41d4a 100644
--- a/nix-repl.el
+++ b/nix-repl.el
@@ -1,5 +1,4 @@
-;; -*- lexical-binding: t -*-
-;;; nix-repl.el --- Nix repl
+;;; nix-repl.el --- Nix repl -*- lexical-binding: t -*-
 
 ;; This file is NOT part of GNU Emacs.
 
@@ -9,6 +8,8 @@
 
 (defvar nix-prompt-regexp "nix-repl> ")
 
+(require 'comint)
+
 (defgroup nix-repl nil
   "nix-repl customizations"
   :group 'nix)
diff --git a/nix-shell.el b/nix-shell.el
index 7e7863a4bf..35c8677d5e 100644
--- a/nix-shell.el
+++ b/nix-shell.el
@@ -8,8 +8,15 @@
 
 ;;; Commentary:
 
+;; To use this just run:
+
+;; M-x RET nix-shell RET
+
+;; This will give you some
+
 ;;; Code:
 
+(require 'nix-mode)
 (require 'term)
 
 (defcustom nix-shell-executable "nix-shell"



reply via email to

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