From 46b488feae34f6f21a17ddc0d8645e49b5d5e9ba Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Thu, 22 Jun 2017 13:46:43 +0200 Subject: Emacs: Install nix-sandbox --- emacs/.emacs.d/init.org | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'emacs') diff --git a/emacs/.emacs.d/init.org b/emacs/.emacs.d/init.org index b26e528..69163f5 100644 --- a/emacs/.emacs.d/init.org +++ b/emacs/.emacs.d/init.org @@ -417,6 +417,22 @@ It starts up without an environment in this case as well. (exec-path-from-shell-initialize))) #+END_SRC +** NixOS sandboxes + +I'm currently exploring using nix to create sandboxes for +development. This package allows using tools from inside sandboxes, +and some convenience commands for building packages and launching shells. + +#+BEGIN_SRC emacs-lisp +(use-package nix-sandbox + :config (progn + (with-eval-after-load 'flycheck + (setq flycheck-command-wrapper-function + (lambda (command) (apply 'nix-shell-command (nix-current-sandbox) command)) + flycheck-executable-find + (lambda (cmd) (nix-executable-find (nix-current-sandbox) cmd)))))) +#+END_SRC + * Keybindings I think =set-keyboard-coding-system= stops OS X from doing something -- cgit 1.4.1