Fixes for Emacs on Darwin

This commit is contained in:
Andrea Ciceri 2021-10-20 18:13:28 +02:00
parent a0a8a6e7cc
commit 8be6d0c9ca
No known key found for this signature in database
GPG key ID: AAFD2423608B645B
2 changed files with 9 additions and 0 deletions

View file

@ -11,6 +11,12 @@
package = pkgs.customEmacs; 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; [ home.packages = with pkgs; [
python python
fd fd

View file

@ -31,6 +31,9 @@
(use-package minimap) (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) (defalias 'yes-or-no-p 'y-or-n-p)
(setq use-dialog-box nil (setq use-dialog-box nil