summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2019-06-30 12:34:51 +0200
committerAlan Pearce2019-06-30 12:34:51 +0200
commit741968bd77c35c19cda1d4c0e7d944992dfa9aad (patch)
tree454cd34a26371af9e36fbda0e997641d1e60eb11
parent3a8c0f8a0386e0066dbec507e85d0b901f91e31c (diff)
downloadnixos-configuration-741968bd77c35c19cda1d4c0e7d944992dfa9aad.tar.lz
nixos-configuration-741968bd77c35c19cda1d4c0e7d944992dfa9aad.tar.zst
nixos-configuration-741968bd77c35c19cda1d4c0e7d944992dfa9aad.zip
Emacs: make certain packages macOS-specific
-rw-r--r--packages/emacs.nix8
1 files changed, 6 insertions, 2 deletions
diff --git a/packages/emacs.nix b/packages/emacs.nix
index 8d6c6d0..cc9d883 100644
--- a/packages/emacs.nix
+++ b/packages/emacs.nix
@@ -9,6 +9,7 @@ let
       rm $out/share/applications/emacs.desktop
     '';
   });
+  stdenv = pkgs.stdenv;
 
   emacsWithPackages = (pkgs.emacsPackagesNgGen myEmacs).emacsWithPackages;
 in
@@ -44,7 +45,6 @@ in
     evil-quickscope
     evil-space
     evil-surround
-    exec-path-from-shell
     eyebrowse
     feature-mode
     flycheck
@@ -100,7 +100,11 @@ in
     wgrep-ag
     which-key
     yaml-mode
-  ]) ++ (with epkgs.elpaPackages; [
+  ] ++ (if stdenv.isDarwin then [
+    exec-path-from-shell
+    ns-auto-titlebar
+  ] else [
+  ])) ++ (with epkgs.elpaPackages; [
     rainbow-mode
   ]) ++ [
     # From main packages set