From mboxrd@z Thu Jan 1 00:00:00 1970 From: Darlan Cavalcante Moreira Subject: Re: Idea, configurable markup Date: Tue, 20 Sep 2011 12:04:18 -0300 Message-ID: <4e78ab76.07cf640a.3077.4d23@mx.google.com> References: <80k494wdmm.fsf@somewhere.org> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:34208) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R61s6-00077I-9I for emacs-orgmode@gnu.org; Tue, 20 Sep 2011 11:04:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R61s1-0000XY-AU for emacs-orgmode@gnu.org; Tue, 20 Sep 2011 11:04:30 -0400 Received: from mail-yi0-f41.google.com ([209.85.218.41]:33730) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R61s1-0000XQ-7u for emacs-orgmode@gnu.org; Tue, 20 Sep 2011 11:04:25 -0400 Received: by yia25 with SMTP id 25so487236yia.0 for ; Tue, 20 Sep 2011 08:04:24 -0700 (PDT) In-Reply-To: <80k494wdmm.fsf@somewhere.org> 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: Sebastien Vauban Cc: emacs-orgmode@gnu.org When I moved from Planner/Muse to Org, the ability to define custom markup with ... is the only thing I missed as well as the ability to easily toggle between hide and show the markup (I thing it was C-c C-l, but I'm not sure). This was a small thing to pay considering everything else org-mode offered in exchange, but it would be nice to have thi flexibility in org. -- Darlan At Mon, 19 Sep 2011 21:12:01 +0200, "Sebastien Vauban" wrote: > > Hi Dov, > > Dov Grobgeld wrote: > > I got the following idea regarding the use of markup characters in org-mode. > > Currently it is possible to use *bold*, /italic/ and ~verbose~ and a few > > other markups. I would have liked to have this extended as follows: > > > > - Allow the toggling of the display of the "formatting" characters, *, ~, > > /, etc. > > It's already in there: > > 1. Choose to get them hidden by default with: > > #+begin_src emacs-lisp > (setq org-hide-emphasis-markers t) > #+end_src > > 2. Make them (dis-)appear by toggling visible-mode. > > > - Allow a system that allows the user to invent his own formatting. E.g. > > «variable», 〈function〉, $math$, ⌞string⌟, or whatever the user fancies. All > > these modes should be defined in an org-mode variable and the display > > attributes should be configurable, just like any other custom org-mode font. > > If the user wants to expand beyond ASCII it should be up to him. > > - Alternately, use a system like "variable" where the tag var > > is user definable, just like the magic characters above. The display of the > > tags should be toggable. Just like for [file:foo.bar] where the [] character > > are hidden, should the tags be hidden until someone erases one of the two > > delimiters. > > > > Note that this is nothing more than ideas at the moment, and I'll probably > > never get around to implement any of it. Still I thought I'd share it if > > someone would like to have a go. > > Regarding inventing new formatting and having them correctly exported, this is > already there as well: > > See: > > - `org-emphasis-alist' for face in Emacs and code to HTML > - `org-export-latex-emphasis-alist' for code to LaTeX > > So, already done (by others!). > > Just a comment on this: I would be in favor of having one or two extra formats > _by default_ -- so that it's not relying on my .emacs config file; in fact, as > much as in TeXinfo... > > Currently, as "special" formats[1], we only have: > > - org-code, and > - org-verbatim. > > And the use case is not that clear to me (how do you code a URL, a filename, > an argument or a key binding?), as both finally gets resolved to the same > appearance (in HTML, and almost the same in LaTeX). > > In TeXinfo, it seems to me we have at least: > > - url, > - code, > - key binding, > > not speaking of internal references. > > I'd be glad if we could get the same "expressivety", by default, as the one we > have in TeXinfo[2]. > > Best regards, > Seb > > Footnotes: > > [1] I mean: other than bold, italic, underline and striken-through. > [2] Never wrote any line in TeXinfo, but simply had to read a couple. > > -- > Sebastien Vauban > >