Caveat: I am a complete and total noob to e-macs.
Background: I've set up Emacs to open with one frame and two windows sized the way I want and to open an initial Org file every time in the left-hand window of the frame and a blank buffer in the right-hand window of the frame, just like I wanted.
Problem: In the left window of the frame, I have an Org file with links. Link
A (for example) should open an Org file in the right window of the frame. Link
B should open an Org file in the left window of the frame. I distinguish
B by use of the word Main in my Org file names. Ex.
HardwareShopList.org etc. So Emacs upon startup opens
MainList.org (left window), I could follow a link to
MainShoppingList (opens in left window) then select
GroceryShopList (opens in right window). At least that's what I'd like.
What I've Tried:
(both attempts inside
;; This gets EVERY link to open in another window (setq org-link-frame-setup '((file . find-file-other-window) (wl . wl-other-frame)))
;; this opens every link in the same window ;; I think I have the wrong "regexp" or variable (link) (setq org-link-frame-setup '(if (string-match "MAIN" link) (file . find-file) (file . find-file-other-window)))
Could anyone help me out here, point me in the right direction?