I use the same init for both Windows and Linux.
I would like to simplify my file and use variables for some file locations (using a variable in agenda section, etc).
What is the right way to do that in lisp?
Is it as simple as this?
(setq win-file-location '("c:/Users/Username/Desktop/filename.org"))
(setq linux-file-location '("/home/username/Desktop/filename.org"))
You must log in or register to comment.
Using
expand-file-name
and(getenv "HOME")
, you can use the same variable on multiple systems.(setq file-location (expand-file-name "Desktop/filename.org" (getenv "HOME")))