From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Jolitz Subject: Re: use # instead of * to signal different levels of headlines? is it possible? Date: Sat, 05 Apr 2014 02:49:58 +0200 Message-ID: <87zjk0ob0p.fsf@gmail.com> References: <665DC863-4E71-49BC-8C68-BD82AA52E955@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40342) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WWEmv-0002Qh-Kl for emacs-orgmode@gnu.org; Fri, 04 Apr 2014 20:48:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WWEmq-0003Zs-A9 for emacs-orgmode@gnu.org; Fri, 04 Apr 2014 20:48:49 -0400 Received: from plane.gmane.org ([80.91.229.3]:56218) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WWEmp-0003Zo-Vd for emacs-orgmode@gnu.org; Fri, 04 Apr 2014 20:48:44 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WWEmo-0001aa-Sa for emacs-orgmode@gnu.org; Sat, 05 Apr 2014 02:48:42 +0200 Received: from e178060081.adsl.alicedsl.de ([85.178.60.81]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 05 Apr 2014 02:48:42 +0200 Received: from tjolitz by e178060081.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 05 Apr 2014 02:48:42 +0200 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 Josiah Schwab writes: > On Apr 4, 2014, at 3:34 PM, isaac wrote: > >> As a heavy user of orgmode, I am wondering if it's possible to use # >> instead >> of * to signal the level of outline in orgmode? > > No. See > http://orgmode.org/worg/org-faq.html#sec-8-12 Yes. Use outshine.el with outcommented Org-mode headers. Here is an example: #+begin_src R ## * my-sources.R --- my R Source file ## :PROPERTIES: ## :copyright: my_name ## :copyright-years: 2013 ## :version: 0.9 ## :created: 21-01-2013 ## :licence: GPL 2 or later (free software) ## :licence-url: http://www.gnu.org/licenses/ ## :author: my_name ## :author_email: my_email AT gamil DOT com ## :inspiration: foo bar ## :keywords: foo bar ## :END: ## ** Commentary ## Geometry Object Model from "OGC OpenGIS Simple Features Specification for ## SQL" Revision. 1.1 [...] ## ** Changes ## | author | version | date | ## |---------+---------+-----------------| ## | my_name | 0.9 | <2013-06-05 Mi> | ## * code ## ** My first R Function ## simple example function from the manual twosam <- function(y1, y2) { n1 <- length(y1); n2 <- length(y2) yb1 <- mean(y1); yb2 <- mean(y2) s1 <- var(y1); s2 <- var(y2) s <- ((n1-1)*s1 + (n2-1)*s2)/(n1+n2-2) tst <- (yb1 - yb2)/sqrt(s*(1/n1 + 1/n2)) tst } ## ** My second R Function ## another simple example function from the manual bslash <- function(X, y) { X <- qr(X) qr.coef(X, y) } ## my-sources.R ends here #+end_src For editing the property-drawer of the first headline in full Org-mode, use outorg.el. This is how the *outorg-edit-buffer* looks after doing C-u M-# M-# (outorg-edit-as-org) on the first headline (to convert and edit only the subtree at point, use M-# M-#): ,-------------------------------------------------------------------------- | * my-sources.R --- my R Source file | :PROPERTIES: | :copyright: my_name | :copyright-years: 2013 | :version: 0.9 | :created: 21-01-2013 | :licence: GPL 2 or later (free software) | :licence-url: http://www.gnu.org/licenses/ | :author: my_name | :author_email: my_email AT gamil DOT com | :inspiration: foo bar | :keywords: foo bar | :END: | | ** Commentary | | Geometry Object Model from "OGC OpenGIS Simple Features Specification for | SQL" Revision. 1.1 [...] | | ** Changes | | | author | version | date | | |---------+---------+-----------------| | | my_name | 0.9 | <2013-06-05 Mi> | | | * code | ** My first R Function | | simple example function from the manual | #+begin_example | twosam <- function(y1, y2) { | n1 <- length(y1); n2 <- length(y2) | yb1 <- mean(y1); yb2 <- mean(y2) | s1 <- var(y1); s2 <- var(y2) | s <- ((n1-1)*s1 + (n2-1)*s2)/(n1+n2-2) | tst <- (yb1 - yb2)/sqrt(s*(1/n1 + 1/n2)) | tst | } | #+end_example | | ** My second R Function | | another simple example function from the manual | #+begin_example | bslash <- function(X, y) { | X <- qr(X) | qr.coef(X, y) | } | #+end_example | | my-sources.R ends here `-------------------------------------------------------------------------- [ups, I see a bug ... sources should be wrapped into #+begin_src R blocks] For headline (1-8) and many many keyword searches in ESS/R use navi-mode.el, here is the summary of the keyword searches: ,---------------------------------------------- | [KEY] : [SEARCH] | ================ | a : ALL | f : FUN | v : VAR | x : OBJ | b : DB | X : objects | Y : methods | R : inout | C : datacreation | [ : slicing | A : varconversion | I : varinfo | W : dataselection | M : math | ] : matrices | O : advdataprocessing | _ : strings | : : datestimes | P : plotting | L : lowlevelplotting | T : trellisgraphics | ~ : modelfitting | S : statistics | D : distributions | { : programming | = : assignment | U : environment `---------------------------------------------- You can combine headline and keyword searches like this: ,------ | C-3 D `------ shows headlines up to level 3 and R-keywords related to distributions. -- cheers, Thorsten