From 0d6c0881a81e2ba3a1cd88f8ae9dab6a86c966af Mon Sep 17 00:00:00 2001 From: William Carroll Date: Tue, 4 Sep 2018 15:00:18 -0400 Subject: [PATCH] Support nix configuration I suppose it was only a matter of time... --- configs/shared/zsh/.zshrc | 1 + emacs.d/init.el | 1 + emacs.d/wpc/packages/wpc-nix.el | 12 ++++++++++++ 3 files changed, 14 insertions(+) create mode 100644 emacs.d/wpc/packages/wpc-nix.el diff --git a/configs/shared/zsh/.zshrc b/configs/shared/zsh/.zshrc index 49452db76..e5e9f53ed 100644 --- a/configs/shared/zsh/.zshrc +++ b/configs/shared/zsh/.zshrc @@ -2,6 +2,7 @@ export META_DIR="${HOME}/urbint/meta" export DOTFILES="${HOME}/dotfiles" export ZSH="${HOME}/.oh-my-zsh" export PATH="${PATH}:${HOME}/.local/bin" +export NIX_PKGS="${HOME}/programming/nixpkgs/pkgs" # Put this here temporarily until we have a better place for it. export FPP_EDITOR='emacsclient -n' diff --git a/emacs.d/init.el b/emacs.d/init.el index 75cc0fc06..b2fb4cfa3 100644 --- a/emacs.d/init.el +++ b/emacs.d/init.el @@ -25,5 +25,6 @@ (require 'wpc-docker) (require 'wpc-lisp) (require 'wpc-haskell) +(require 'wpc-nix) (require 'wpc-clojure) (require 'wpc-javascript) diff --git a/emacs.d/wpc/packages/wpc-nix.el b/emacs.d/wpc/packages/wpc-nix.el new file mode 100644 index 000000000..af439c442 --- /dev/null +++ b/emacs.d/wpc/packages/wpc-nix.el @@ -0,0 +1,12 @@ +;;; wpc-nix.el --- Nix support -*- lexical-binding: t -*- +;; Author: William Carroll + +;;; Commentary: +;; Configuration to support working with Nix. + +;;; Code: +(use-package nix-mode + :mode "\\.nix\\'") + +(provide 'wpc-nix) +;;; wpc-nix.el ends here