From 8be6d0c9cafaff8c820a83752a35b9415945ad4c Mon Sep 17 00:00:00 2001 From: Andrea Ciceri Date: Wed, 20 Oct 2021 18:13:28 +0200 Subject: [PATCH] Fixes for Emacs on Darwin --- users/profiles/emacs/default.nix | 6 ++++++ users/profiles/emacs/emacs.d/config/aesthetics.el | 3 +++ 2 files changed, 9 insertions(+) diff --git a/users/profiles/emacs/default.nix b/users/profiles/emacs/default.nix index ae951d6..016c750 100644 --- a/users/profiles/emacs/default.nix +++ b/users/profiles/emacs/default.nix @@ -11,6 +11,12 @@ package = pkgs.customEmacs; }; + # For some reason Hunspell dictionaries paths must be specified on Darwin + home.sessionVariables = + if pkgs.system == "x86_64-darwin" then { + DICPATH = "${pkgs.hunspellDicts.it_IT}/share/hunspell:${pkgs.hunspellDicts.en_US}/share/hunspell"; + } else { }; + home.packages = with pkgs; [ python fd diff --git a/users/profiles/emacs/emacs.d/config/aesthetics.el b/users/profiles/emacs/emacs.d/config/aesthetics.el index 71680a5..f9459e0 100644 --- a/users/profiles/emacs/emacs.d/config/aesthetics.el +++ b/users/profiles/emacs/emacs.d/config/aesthetics.el @@ -31,6 +31,9 @@ (use-package minimap) +;; To move in a different config file +(when (string-equal system-type "darwin") + (setq mac-command-modifier 'ctrl)) (defalias 'yes-or-no-p 'y-or-n-p) (setq use-dialog-box nil