From mboxrd@z Thu Jan 1 00:00:00 1970 From: torys.anderson@gmail.com (Tory S. Anderson) Subject: Re: Customize html formatting tags for export Date: Thu, 29 Jan 2015 05:55:04 -0500 Message-ID: <8761bpvotz.fsf@gmail.com> References: <877fw6wsdm.fsf@gmail.com> <878ugmei20.fsf@wmi.amu.edu.pl> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:32887) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YGmkg-00027A-6E for emacs-orgmode@gnu.org; Thu, 29 Jan 2015 05:55:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YGmkd-0005qt-5y for emacs-orgmode@gnu.org; Thu, 29 Jan 2015 05:55:10 -0500 Received: from mail-yk0-x229.google.com ([2607:f8b0:4002:c07::229]:62331) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YGmkd-0005pp-1s for emacs-orgmode@gnu.org; Thu, 29 Jan 2015 05:55:07 -0500 Received: by mail-yk0-f169.google.com with SMTP id 200so12652958ykr.0 for ; Thu, 29 Jan 2015 02:55:06 -0800 (PST) In-Reply-To: <878ugmei20.fsf@wmi.amu.edu.pl> (Marcin Borkowski's message of "Wed, 28 Jan 2015 22:01:11 +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: Marcin Borkowski Cc: orgmode list Thanks. With that info I did this: --8<---------------cut here---------------start------------->8--- ;; convert =C-x=a to C-x, *awesome* to awesome (setq org-html-text-markup-alist '((bold . "%s") ; *text* (code . "%s") ; ~text~ (italic . "%s") ; /text/ (strike-through . "%s") ; +text+ (underline . "%s") ; _text_ (verbatim . "%s"))) ; =text= --8<---------------cut here---------------end--------------->8--- It seems to work great! I failed finding a way to make this just a buffer local change (e.g. only when I'm writing in my tech blog org file), but I can live with that. Note: I changed to because I'm a web developer and most of the time hurts my soul[1][2][3] ... Marcin Borkowski writes: > On 2015-01-28, at 21:40, Tory S. Anderson wrote: > >> Right now I see that =formatted= and ~formatted~ both produce formatted when exported to html. How can I change one of these, perhaps to a custom tag (in particular, I'm hoping to produce formatted)? > > See ox-html. There are functions org-html-verbatim and org-html-code. > If you look at those, you can see that (even though it might be > a quick-and-dirty hack) customizing org-html-text-markup-alist should > work. You might even utilize the strike-through, if you never use it. > > Hth, Footnotes: [1] https://developer.mozilla.org/en-US/docs/Web/HTML/Element/strong [2] http://www.html-5-tutorial.com/strong-and-b-elements.htm [3] http://stackoverflow.com/questions/271743/whats-the-difference-between-b-and-strong-i-and-em