I'm trying to configure my org based init file to work on 2 different machines where some of my org file would be accessed remotely. For example I want to define within the same config different org capture based on which machine I'm currently on (hostname).
I have this initial code:
(when (string= system-name "home")
(add-to-list 'org-capture-templates
'("z" "web capture " item
(file+headline "/home/zeltak/org/files/web/wbookmarks.org" "Temporary Links")
"%?\nEntered on %U\n \%i\n %a"))
)
(when (string= system-name "work")
(add-to-list 'org-capture-templates
'("z" "web capture " item
(file+headline "/sshx:work:~/org/files/wbookmarks.org" "Temporary Links")
"%?\nEntered on %U\n \%i\n %a"))
)
I have 30 captures like this where I have to reproduce for both machines. I am sure there is a more intelligent way to do this and am looking for suggestions. Perhaps define a Path variable that changes based on machine?