Add XMODIFIERS=emacs

This fixes the latest segfault I encountered after
/usr/bin/{google-emacs,emacs} was updated...
This commit is contained in:
William Carroll 2020-08-19 21:46:12 +01:00
parent 9d7331d63b
commit c9da7c5214

View file

@ -116,6 +116,7 @@ let
withEmacsPath = emacsBin: pkgs.writeShellScriptBin "wpcarros-emacs" '' withEmacsPath = emacsBin: pkgs.writeShellScriptBin "wpcarros-emacs" ''
# TODO: Is this the best way to handle environment variables using Nix? # TODO: Is this the best way to handle environment variables using Nix?
export XMODIFIERS=emacs
export BRIEFCASE=$HOME/briefcase export BRIEFCASE=$HOME/briefcase
export DEPOT=$HOME/depot export DEPOT=$HOME/depot
@ -134,7 +135,7 @@ let
in { in {
# Use `nix-env -f '<briefcase>' emacs.glinux` to install `wpcarro-emacs` on # Use `nix-env -f '<briefcase>' emacs.glinux` to install `wpcarro-emacs` on
# gLinux machines. This will ensure that X and GL linkage behaves as expected. # gLinux machines. This will ensure that X and GL linkage behaves as expected.
glinux = withEmacsPath "/usr/bin/emacs"; glinux = withEmacsPath "/usr/bin/google-emacs";
# Use `nix-env -f '<briefcase>' emacs.nixos` to install `wpcarros-emacs` on # Use `nix-env -f '<briefcase>' emacs.nixos` to install `wpcarros-emacs` on
# NixOS machines. # NixOS machines.