From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Brown Subject: Re: html-email in org-mode Date: Tue, 01 Nov 2016 06:58:44 -0500 Message-ID: <87pomf76ob.fsf@air.ericcbrown.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50055) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c1XiQ-0001B6-T7 for emacs-orgmode@gnu.org; Tue, 01 Nov 2016 07:58:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c1XiN-0004iz-RP for emacs-orgmode@gnu.org; Tue, 01 Nov 2016 07:58:54 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:45402) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c1XiN-0004gy-N4 for emacs-orgmode@gnu.org; Tue, 01 Nov 2016 07:58:51 -0400 In-Reply-To: (John Kitchin's message of "Sun, 30 Oct 2016 17:45:21 -0400") 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" To: John Kitchin Cc: "Emacs-orgmode@gnu.org" John Kitchin writes: > Do you mean monospace in the whole html message, e.g. something like Courier? > > Or just in a table? I do not think you can control the font in plain > text emails. > > You can set the font in the td elements of a table like this (I used > cursive because it was easy to see. > > #+BEGIN_SRC emacs-lisp > (defun italicize-table (data backend info) > (with-temp-buffer > (insert data) > (goto-char (point-min)) > (while (re-search-forward " (replace-match " (message"got %s" (buffer-string)) > (buffer-string))) > > > (add-to-list 'org-export-filter-table-functions 'italicize-table) > #+END_SRC > > After you run that, the tables in html have italicized/cursive elements > in them. And probably all other exports to html too ;) > Thanks, this is extremely useful, as well. In retrospect, I think my question may be a bit moot, as the HTML formatting would probably allow tables to remain aligned regardless of length of any one cell. My comment was motivated by other usage where I wish that I could simply wrap an entire simple text, whitespace-formatted email message, e.g. generated from org export to a plain text buffer, with a Monospace directive so that webmail users could appreciate what I see with Sans Mono.