From bbc78c11b28c565ea13f87edb1156b6967e898ee Mon Sep 17 00:00:00 2001 From: Andrew Guschin Date: Wed, 4 Dec 2024 01:11:58 +0400 Subject: wip: macos configuration --- init.el | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'init.el') diff --git a/init.el b/init.el index 0e00c6b..a9c5379 100644 --- a/init.el +++ b/init.el @@ -7,9 +7,14 @@ (setq config-path (expand-file-name "config.org" user-emacs-directory)) (setq config-untangled-path (expand-file-name "config.el" user-emacs-directory)) +(when (eq system-type 'gnu/linux) + (setq md5-cmd "md5sum --zero ")) +(when (eq system-type 'darwin) + (setq md5-cmd "md5 -q ")) + ;; Since config is residing inside one file, I can calculate its checksum and tangle config.org only ;; when it was changed. This way loading is significantly faster. -(setq new-checksum (car (split-string (shell-command-to-string (concat "md5sum --zero " config-path))))) +(setq new-checksum (car (split-string (shell-command-to-string (concat md5-cmd config-path))))) (setq saved-checksum "") (when (file-exists-p checksum-path) (setq saved-checksum (with-temp-buffer -- cgit v1.2.3