I do my development in the Nix shell (I create a default.nix file in my project root directory and run nix-shell . To give me a shell with access to the project dependencies).
Spacemacs is my main editor, but when I try to run the GUI version through emacs & , I do not have access to the programs in my nix shell (for example, if I was in a Ruby on Rails project and Ruby was declared as a dependency in my default.nix , I wouldn’t have syntax highlighting in Spacemacs, because the GUI version of Emacs does not see the dependency on the Nix shell). If I run :!which ruby , it cannot even find which command.
Now I run spacemacs through emacs -nw and just use it from the console, but I would really like to be able to use the GUI editor and get all the colors available, and not be limited to those that look beautiful in 256 color mode. It is also faster for me to switch between a terminal and an editor than between tmux panels or terminal separators to get to my CLI editor.
with import <nixpkgs> {}; { cannyFreeRadicalEnv = stdenv.mkDerivation rec { name = "rails-project-env"; version = "0.1"; src = ./.; buildInputs = [ stdenv ruby_2_2_2 bundler zlib postgresql94 sqlite zsh git nodejs-0_12 ]; }; }
source share