Skip to content

Commit

Permalink
Remove global-nix-mode
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewbauer committed Jul 30, 2018
1 parent c1b1982 commit dd49386
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions nix.el
Original file line number Diff line number Diff line change
Expand Up @@ -153,26 +153,5 @@
(pcomplete-here)))
(pcomplete-here nix-commands))

;;;###autoload
(define-minor-mode global-nix-mode
"Minor mode to enable Nix enhancements."
:require 'nix
:global t
(if global-nix-mode
(progn
(add-to-list 'interpreter-mode-alist '("nix-shell" . nix-shebang-mode))
(add-to-list 'auto-mode-alist '("\\.nix\\'" . nix-mode))
;; (add-to-list 'auto-mode-alist '("\\.drv\\'" . nix-drv-mode))
;; (add-hook 'after-change-major-mode-hook 'nix-shell)
)
(progn
(setq interpreter-mode-alist (remove '("nix-shell" . nix-shebang-mode)
interpreter-mode-alist))
(setq auto-mode-alist
(remove '("\\.drv\\'" . nix-drv-mode)
(remove '("\\.nix\\'" . nix-mode) auto-mode-alist)))
;; (remove-hook 'after-change-major-mode-hook 'nix-shell)
)))

(provide 'nix)
;;; nix.el ends here

0 comments on commit dd49386

Please sign in to comment.