From 80a7a2a2cb58e46801f00475fad0f2c0bad1694a Mon Sep 17 00:00:00 2001 From: Random936 Date: Wed, 10 Jan 2024 13:45:39 -0800 Subject: [PATCH] Reimplemented macos fix; Slight fix for jm/org-roam-goto-today --- .emacs.d/config.org | 10 ++++++++++ .emacs.d/org.org | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.emacs.d/config.org b/.emacs.d/config.org index 583abc7..cb4f2c3 100644 --- a/.emacs.d/config.org +++ b/.emacs.d/config.org @@ -91,6 +91,16 @@ Below are a few configuration changes to avoid TRAMP freezes when attempting to (setq tramp-remote-shell-args "-c") #+end_src +** MacOS Environment Fix + +When using emacs on MacOS, the environment variables are not synced properly and therefore require a separate package to fix this. In this case, this package is the ~exec-path-from-shell~. + +#+begin_src emacs-lisp +(use-package exec-path-from-shell + :if (memq window-system '(mac ns x)) + :config (exec-path-from-shell-initialize)) +#+end_src + * Package Manager Emacs and packages. Pretty much a requirement. diff --git a/.emacs.d/org.org b/.emacs.d/org.org index 2743ac2..f598eca 100644 --- a/.emacs.d/org.org +++ b/.emacs.d/org.org @@ -18,7 +18,7 @@ This installs the org package and creates a setup function to enable/disable cer (defun jm/org-roam-goto-today () (interactive) (let* ((path (format-time-string "%Y-%m-%d.org" )) - (full-path (file-name-concat org-roam-directory org-roam-dailies-directory path))) + (full-path (file-name-concat org-roam-directory "daily" path))) (if (file-exists-p full-path) (find-file full-path) (org-roam-dailies-capture-today))))