Reimplemented macos fix; Slight fix for jm/org-roam-goto-today
This commit is contained in:
parent
9658443213
commit
80a7a2a2cb
@ -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.
|
||||
|
@ -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))))
|
||||
|
Loading…
x
Reference in New Issue
Block a user