emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Tom Burbage <tiburbage@gmail.com>
To: Grant Rettke <gcr@wisdomandwonder.com>, m43cap@yandex.com
Cc: Org-mode <emacs-orgmode@gnu.org>
Subject: Re: org-mode: Would like to add custom chars as org-list bullets
Date: Mon, 29 Oct 2018 12:21:31 -0700	[thread overview]
Message-ID: <05fb4527-84fa-5fab-3243-4a4572ec263a@gmail.com> (raw)
In-Reply-To: <CAAjq1metWiaHeZCDikX7M1EH8Lc4MGgas35c+D5rKKEjOkGQXw@mail.gmail.com>

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

I don't think the suggestions made in that thread are going to help in 
terms of org-mode recognizing a line as being a list item.
What I tried that I did think might work was to customize 
org-list-full-item-re:

org-list-full-item-re is a variable defined in ‘org-list.el’.
Its value is
"^[     ]*\\(\\*(?:[-+*]\\|\\(?:[0-9]+\\|[A-Za-z]\\)[.)]\\)*\\(?:[     
]+\\|$\\)\\)\\(?:\\[@\\(?:start:\\)?\\([0-9]+\\|[A-Za-z]\\)\\][     
]*\\)?\\(?:\\(\\[[ X-]\\]\\)\\(?:[ ]+\\|$\\)\\)?\\(?:\\(.*\\)[     
]+::\\(?:[     ]+\\|$\\)\\)?"

   This variable may be risky if used as a file-local variable.

Documentation:
Matches a list item and puts everything into groups:
*group 1: bullet*
group 2: counter
group 3: checkbox
group 4: description tag

to add '!' and '?' to '-+' in the group 1 expression, but that didn't do 
it. ( *[-+*] => [-+!?*]* )

On 10/24/2018 5:47 PM, Grant Rettke wrote:
> On Sat, Oct 13, 2018 at 1:56 AM Colin Baxter <m43cap@yandex.com> wrote:
>>>>>>> Tom Burbage <tiburbage@gmail.com> writes:
>>      > When I use simple lists, I would like to be able to mix in '!' and
>>      > '?'  with '-' as these are sometimes more expressive of what the
>>      > list item represents.  My request is that the list of characters
>>      > org-list recognizes as being a valid "bullet" be customizable by
>>      > the user.
>>
>> Have a look at https://emacs.stackexchange.com/questions/35626/how-to-make-my-own-org-mode-text-emphasis-work-again.
> Which code are you recommending?


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

      parent reply	other threads:[~2018-10-29 19:21 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-13  1:54 org-mode: Would like to add custom chars as org-list bullets Tom Burbage
2018-10-13  5:33 ` Nicolas Goaziou
2018-10-13  6:55 ` Colin Baxter
2018-10-25  0:47   ` Grant Rettke
2018-10-25 15:22     ` Colin Baxter
2018-10-29 19:21     ` Tom Burbage [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=05fb4527-84fa-5fab-3243-4a4572ec263a@gmail.com \
    --to=tiburbage@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=gcr@wisdomandwonder.com \
    --cc=m43cap@yandex.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).