Re: [O] function to cycle through specific org files?

2015-10-19 Thread Kaushal Modi
In the event those org files are part of your org agenda, there is an inbuilt command to do that: org-cycle-agenda-files C-' (org-cycle-agenda-files) C-,Cycle through agenda file list, visiting one file after the other. http://orgmode.org/manual/Agenda-files.html On Oct 19, 2015 7:06 AM,

Re: [O] function to cycle through specific org files?

2015-10-19 Thread John Kitchin
this feels kind of hacky, but it seems to do what you want: (setq my-files '("a.org" "b.org" "c.org")) (defun my-next-file () (interactive) (let ((f (pop my-files))) (add-to-list 'my-files f t) (find-file f))) (defun my-previous-file () (interactive) (let* ((r-my-files (reverse my-fi

[O] function to cycle through specific org files?

2015-10-18 Thread Xebar Saram
Hi all I know this should be easy (for anyone that knows elisp that is :)). how does one create a function that cycles up/down through a list of pre defined buffers/files? for example i want to cycle (ie open and show in the emacs window) through: A.org B.org C.org i want to use ie A-left and A-ri