I have something like this inside my init file:
(when (file-readable-p "/absolute/path/to/config.org") (org-babel-load-file (expand-file-name "/absolute/path/to/config.org")))
config.org is in the same directory as
init.el. I want to be able to specify a relative path to
init.el so that emacs can find the config file no matter where the init file is located on any device. However, when I tried
"./config.org" that is interpreted relative to the directory where emacs is opened, not where
init.el is located.
How can I specify a path relative to
I'm using emacs-28, if that matters.