emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Marcin Borkowski <mbork@wmi.amu.edu.pl>
To: orgmode list <emacs-orgmode@gnu.org>
Subject: Re: Customize html formatting tags for export
Date: Thu, 29 Jan 2015 12:10:48 +0100	[thread overview]
Message-ID: <87y4oldeq9.fsf@wmi.amu.edu.pl> (raw)
In-Reply-To: <8761bpvotz.fsf@gmail.com>


On 2015-01-29, at 11:55, Tory S. Anderson <torys.anderson@gmail.com> wrote:

> Thanks. With that info I did this: 
>
> --8<---------------cut here---------------start------------->8---
> ;; convert =C-x=a to <kbd>C-x</kbd>, *awesome* to <strong>awesome</strong>
> (setq org-html-text-markup-alist   '((bold . "<strong>%s</strong>") ; *text*
>     (code . "<code>%s</code>") ; ~text~
>     (italic . "<i>%s</i>") ; /text/
>     (strike-through . "<del>%s</del>") ; +text+
>     (underline . "<span class=\"underline\">%s</span>") ; _text_
>     (verbatim . "<kbd>%s</kbd>"))) ; =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. 

While we are at dirty hacks: did you try make-local-variable (which see)?

Hth,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University

      parent reply	other threads:[~2015-01-29 11:10 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-28 20:40 Customize html formatting tags for export Tory S. Anderson
2015-01-28 21:01 ` Marcin Borkowski
2015-01-29 10:55   ` Tory S. Anderson
2015-01-29 11:00     ` Sebastien Vauban
2015-01-29 11:10     ` Marcin Borkowski [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y4oldeq9.fsf@wmi.amu.edu.pl \
    --to=mbork@wmi.amu.edu.pl \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).