From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Jolitz Subject: [FYI] Outshine can now do Tags and Todo's and more ... Date: Wed, 12 Mar 2014 17:39:22 +0100 Message-ID: <87k3bzqslh.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52544) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WNmAs-0001sS-4v for emacs-orgmode@gnu.org; Wed, 12 Mar 2014 12:38:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WNmAk-00063o-Pu for emacs-orgmode@gnu.org; Wed, 12 Mar 2014 12:38:34 -0400 Received: from plane.gmane.org ([80.91.229.3]:44380) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WNmAk-000625-JC for emacs-orgmode@gnu.org; Wed, 12 Mar 2014 12:38:26 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WNmAj-00027o-Bq for emacs-orgmode@gnu.org; Wed, 12 Mar 2014 17:38:25 +0100 Received: from e178190177.adsl.alicedsl.de ([85.178.190.177]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 12 Mar 2014 17:38:25 +0100 Received: from tjolitz by e178190177.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 12 Mar 2014 17:38:25 +0100 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: emacs-orgmode@gnu.org Hi List, by adding a soft-dependency to outorg.el and a generic function `outshine-use-outorg', it is now possible to call all kinds of Org-mode functionality from an outshine buffer (i.e. a source-code buffer with outline-minor-mode and outshine extensions enabled). Its a first version, so not everything works, but here is an example of what can be done: Assume point is on headline *** Point in a (PicoLisp) outshine buffer: #+begin_src picolisp ## *** Point ## :LOGBOOK: ## CLOCK: [2014-03-12 Mi 17:02]--[2014-03-12 Mi 17:09] => 0:07 ## CLOCK: [2014-03-12 Mi 16:02]--[2014-03-12 Mi 16:06] => 0:04 ## :END: ## A Point is a 0-dimensional geometry and represents a single location ## in coordinate space. A Point has a x- coordinate value and a ## y-coordinate value. (dm x> () () ) # return Double (x-coordinate) #+end_src Then outshine-speed-commands ,-------- | , A RET `-------- will produce #+begin_src org ## *** [#A] Point ## :LOGBOOK: #+end_src and outshine-speed-command ,-- | 2 `-- will change it to #+begin_src org ## *** [#B] Point ## :LOGBOOK: #+end_src because of this code in outshine.el: #+begin_src emacs-lisp (defconst outshine-speed-commands-default '( ("Outline Navigation") ("n" . (outshine-speed-move-safe 'outline-next-visible-heading)) ("p" . (outshine-speed-move-safe 'outline-previous-visible-heading)) ;; [...] ("Meta Data Editing") ("t" . (outshine-use-outorg 'org-todo)) ("," . (outshine-use-outorg 'org-priority)) ("0" . (outshine-use-outorg (lambda () (org-priority ?\ )))) ("1" . (outshine-use-outorg (lambda () (org-priority ?A)))) ("2" . (outshine-use-outorg (lambda () (org-priority ?B)))) ("3" . (outshine-use-outorg (lambda () (org-priority ?C)))) ;; [...] )) #+end_src that will look very familar to Org-mode users, since it is copied and adapted from there. I think there is great potential for this, one should be able to clock in and out, set todos and priorities etc etc directly in all kinds of (outshine-structured) source-code buffers - using the existing Org-mode functionality, without rewriting anything. So I wanted to let you know. PS No doubt there will be many cases where things don't work out of the box right now, since I just started to code this today, but with time there will be hacks and fixes that will enable more and more Org-functionality in outshine buffers. -- cheers, Thorsten