From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avner Moshkovitz Subject: Re: Org-agenda - show content outline from multiple org files Date: Tue, 31 Jul 2012 17:12:49 -0700 Message-ID: References: <0398D32711F74A5EBBB9568B01F28543@familyPC> <87d34lmtq8.fsf@norang.ca> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:48879) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SwMsj-0004xp-8C for emacs-orgmode@gnu.org; Tue, 31 Jul 2012 20:33:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SwMsi-0004By-32 for emacs-orgmode@gnu.org; Tue, 31 Jul 2012 20:33:45 -0400 Received: from mailex.lighthauslogic.com ([96.53.49.204]:16112) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SwMsh-0004BD-S4 for emacs-orgmode@gnu.org; Tue, 31 Jul 2012 20:33:44 -0400 In-Reply-To: <87d34lmtq8.fsf@norang.ca> Content-Language: en-US List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Bernt Hansen , Avner Cc: "emacs-orgmode@gnu.org" Hi Bernt, Sorry for the long delay - I couldn't find a way to edit the post (I don't = have an account). Yes, this is what I was looking for. I also added the functions below to step through the headings and open them= in different buffer Thanks for the help. Avner ----------------------------------------------------- (defun org-agenda-show1 (&optional full-entry) "Display the Org-mode file which contains the item at point. With prefix argument FULL-ENTRY, make the entire entry visible if it was hidden in the outline." (interactive "P") (let ((win (selected-window))) (if full-entry (let ((org-show-entry-below t)) (org-agenda-goto1 t)) (org-agenda-goto1 t)) ) ) (defun org-agenda-goto1 (&optional highlight) "Go to the Org-mode file which contains the item at point." (interactive) (let* ((marker (or (org-get-at-bol 'org-marker) (org-agenda-error))) (buffer (marker-buffer marker)) (pos (marker-position marker))) (other-frame 1) (switch-to-buffer buffer) (widen) (goto-char pos) (when (org-mode-p) (org-show-context 'agenda) (save-excursion (and (outline-next-heading) (org-flag-heading nil)))) ; show the next heading (recenter (/ (window-height) 2)) (run-hooks 'org-agenda-after-show-hook) (and highlight (org-highlight (point-at-bol) (point-at-eol))))) (defun org-next-agenda-item2 () (interactive) (setq display-buffer-reuse-frames t) (pop-to-buffer "*Org Agenda* headings") (next-line-nomark) (org-agenda-show1) (pop-to-buffer "*Org Agenda* headings") ) (defun org-prev-agenda-item2 () (interactive) (setq display-buffer-reuse-frames t) (pop-to-buffer "*Org Agenda* headings") (previous-line-nomark) (org-agenda-show1) (pop-to-buffer "*Org Agenda* headings") ) (global-set-key [C-f11] 'org-next-agenda-item2) (global-set-key [C-S-f11] 'org-prev-agenda-item2) -----Original Message----- From: Bernt Hansen [mailto:bernt@norang.ca] Sent: June 26, 2012 6:25 PM To: Avner Cc: emacs-orgmode@gnu.org; Avner Moshkovitz Subject: Re: Org-agenda - show content outline from multiple org files "Avner" writes: > I have a list of org files associated with org-agenda. > > In the Org-Agenda buffer, I want to have a outline content view that > shows the headings from all the files. > > In org-agenda, I can apply "search for keywords" (s) and "Multi-occur" > (/) to present all the headings, which I can then visit in the org > file buffer > > However, these headings are shown as regular strings. What I'm looking > for, is a way to present them in color, and indentation according to > the heading level, similar to the "contents" presentation in the org > file itself. Hi Avner, Maybe this is close to what you are looking for? (setq org-tags-match-list-sublevels t) C-c a m LEVEL<4 RET should show levels 1-3 in all files with sublevels indented. Sorting by pr= iorities and things is going to mess up the order in the list. For me only the TODO keywords are coloured and indentation is done with lea= ding dots in the agenda view but you can visit and modify the headings dire= ctly from the agenda. HTH. Regards, Bernt This e-mail may contain information that is privileged, confidential or oth= erwise exempt from disclosure under applicable laws. Unauthorized use, repr= oduction or dissemination of the e-mail is strictly prohibited. If you have= received this e-mail in error, please contact the sender immediately. [11E= ABB509DF]