diff options
| author | Andrew Guschin <guschin@altlinux.org> | 2024-12-04 01:11:58 +0400 |
|---|---|---|
| committer | Andrew Guschin <guschin@altlinux.org> | 2024-12-04 01:12:30 +0400 |
| commit | bbc78c11b28c565ea13f87edb1156b6967e898ee (patch) | |
| tree | 4781e9f7ef3d9b4f1a4188a32f3d41c2a4165d81 /init.el | |
| parent | 833b99eca076276453d12aa5e7c42fd574ae5ac3 (diff) | |
wip: macos configuration
Diffstat (limited to 'init.el')
| -rw-r--r-- | init.el | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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 |