about summary refs log tree commit diff
path: root/configs/shared/emacs/.emacs.d/elpa/nix-mode-20180908.2240/nix-shebang.el
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2019-01-13T19·33-0500
committerWilliam Carroll <wpcarro@gmail.com>2019-01-13T19·45-0500
commit481df5a3855ccd5ea3bf4d5f41ae780f4773b7b4 (patch)
tree3aeb7e20eaba176536cb8d10ba531ac39674fc4a /configs/shared/emacs/.emacs.d/elpa/nix-mode-20180908.2240/nix-shebang.el
parent18b9930b8604134f087ca61fe94740b31f94327c (diff)
Remove Emacs spam
My inconsistent git history-keeping is coming to bite me here. At the
moment, I can only speculate about what went wrong here. The gist is
this: I unintentionally committed files that were supposed to be ignored

This commit removes those files which includes:

- auto-save-list
- elpa packages
- quelpa packages
- misc
Diffstat (limited to 'configs/shared/emacs/.emacs.d/elpa/nix-mode-20180908.2240/nix-shebang.el')
-rw-r--r--configs/shared/emacs/.emacs.d/elpa/nix-mode-20180908.2240/nix-shebang.el47
1 files changed, 0 insertions, 47 deletions
diff --git a/configs/shared/emacs/.emacs.d/elpa/nix-mode-20180908.2240/nix-shebang.el b/configs/shared/emacs/.emacs.d/elpa/nix-mode-20180908.2240/nix-shebang.el
deleted file mode 100644
index 08cc1629dd74..000000000000
--- a/configs/shared/emacs/.emacs.d/elpa/nix-mode-20180908.2240/nix-shebang.el
+++ /dev/null
@@ -1,47 +0,0 @@
-;;; nix-shebang.el --- Handle nix shebang header -*- lexical-binding: t -*-
-
-;; Author: Matthew Bauer <mjbauer95@gmail.com>
-;; Homepage: https://github.com/NixOS/nix-mode
-;; Version: 1.2.1
-;; Keywords: nix, languages, tools, unix
-;; Package-Requires: ((emacs "24.3"))
-
-;; This file is NOT part of GNU Emacs.
-
-;;; Commentary:
-
-;; This detects file headers that look like:
-;; #!/usr/bin/env nix-shell
-;; #!nix-shell -i bash
-
-;; and correctly detects their file modes.
-
-;;; Code:
-
-(require 'files)
-
-(defvar nix-shebang-interpreter-regexp "#!\s*nix-shell -i \\([^ \t\n]+\\)"
-  "Regexp for nix-shell -i header.")
-
-(defun nix-shebang-get-interpreter ()
-  "Get interpreter string from nix-shell -i file."
-  (save-excursion
-    (goto-char (point-min))
-    (forward-line 1)
-    (when (looking-at nix-shebang-interpreter-regexp)
-      (match-string 1))))
-
-(defun nix-shebang-mode ()
-  "Detect and run file’s interpreter mode."
-  (let ((mode (nix-shebang-get-interpreter)))
-    (when mode
-      (funcall (assoc-default mode
-                              (mapcar (lambda (e)
-                                        (cons
-                                         (format "\\`%s\\'" (car e))
-                                         (cdr e)))
-                                      interpreter-mode-alist)
-                              #'string-match-p)))))
-
-(provide 'nix-shebang)
-;;; nix-shebang.el ends here