emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Kaushal <kaushal.modi@gmail.com>
To: Steven Arntson <steven@stevenarntson.com>, emacs-orgmode@gnu.org
Subject: Re: allow italic quote marks? org-emphasis-regexp-components
Date: Thu, 18 Jun 2015 03:19:55 +0000	[thread overview]
Message-ID: <CAFyQvY3oFFfSu-QpcKiB52NOaq__DAYdw9A8XsvqRkgQYbtFEQ@mail.gmail.com> (raw)
In-Reply-To: <87zj3x7mz5.fsf@stevenarntson.com>

[-- Attachment #1: Type: text/plain, Size: 1583 bytes --]

The solution is simpler than you think; you simply need to add ZERO WIDTH
SPACE unicode char between / and " (beginning) and " and / (end).

The default way to do it is

C-x 8 RET zero width space RET

or

C-x 8 RET 200b RET

But I need to use this priceless unicode char to escape stuff like this in
org-mode and so I have bound "0" in "C-x 8" map to insert this char.
Here is how I do it in my init:
https://github.com/kaushalmodi/.emacs.d/blob/f3c44e933f45dfdb760540e9f86acc91b55ab94a/setup-files/setup-editing.el#L637
Thus I simply need to do C-x 8 0 to insert the ZERO WIDTH SPACE.

To elaborate more, <0> below is where you insert the 200b unicode
characters:

I would like to see /<0>"these surrounding quotes in italics"<0>/.



On Wed, Jun 17, 2015 at 10:46 PM Steven Arntson <steven@stevenarntson.com>
wrote:

> I am not helpful here, but would simply like to add that I would also
> love an answer to this, as well as times when italics don't seem to work
> around periods and commas, like "and /then,/ well, ..." (which does not
> italicize for me on emacs 24.5.1, org 8.2.1).
>
> Myles English <mylesenglish@gmail.com> writes:
>
> > Hello,
> >
> > Can anyone tell me what to set org-emphasis-regexp-components to in
> > order to allow italic quote marks?
> >
> > i.e. /"like this"/
> >
> > I don't understand the documentation and am just not in the mood to
> > spend the next hour or so working it out.  (That is a rule of thumb for
> > me; if it involves a regular expression, it will take at least an hour,
> > and three cups of tea.)
> >
> > Thanks,
> > Myles
>
>
>

[-- Attachment #2: Type: text/html, Size: 2445 bytes --]

  reply	other threads:[~2015-06-18  3:20 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-15 10:12 allow italic quote marks? org-emphasis-regexp-components Myles English
2015-06-18  2:46 ` Steven Arntson
2015-06-18  3:19   ` Kaushal [this message]
2015-06-18  3:23     ` Kaushal
2015-06-18  7:53     ` Marcin Borkowski
2015-06-18 14:29       ` Kaushal
2015-06-18 15:50       ` Myles English
2015-06-18 16:02         ` Kaushal
2015-06-18 17:04           ` Steven Arntson
2015-06-18 18:29           ` Marcin Borkowski
2015-06-18 18:58             ` Rasmus
2015-06-19 12:51               ` Myles English

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=CAFyQvY3oFFfSu-QpcKiB52NOaq__DAYdw9A8XsvqRkgQYbtFEQ@mail.gmail.com \
    --to=kaushal.modi@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=steven@stevenarntson.com \
    /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).