[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[BUG] Customizing org-emphasis-alist does not work as expected [9.6.15 (
From: |
Chang Xiaoduan |
Subject: |
[BUG] Customizing org-emphasis-alist does not work as expected [9.6.15 (release_9.6.15 @ d:/emacs_home/program/emacs/share/emacs/29.2/lisp/org/)] |
Date: |
Wed, 10 Apr 2024 15:52:13 +0800 |
Remember to cover the basics, that is, what you expected to happen and
what in fact did happen. You don't know how to make a good report? See
https://orgmode.org/manual/Feedback.html#Feedback
Your bug report will be posted to the Org mailing list.
------------------------------------------------------------------------
Hello,
I am trying to customizing `org-emphasis-alist` so that ` can replace ~ as
the code marker. I use the following code in my configuration file:
``` emacs-lisp
(setq org-emphasis-alist
'(("*" bold)
("/" italic)
("_" underline)
("=" org-verbatim verbatim)
("`" org-code verbatim)
("+" (:strike-through t))))
```
After I restart Emacs, things does not work as I expected. Text
surrounded by ` is not rendered using the faces for code, and text
surrounded by ~ is rendered using a different face for code (different
from the faces before the customizing is applied). Also, I have set
`org-hide-emphasis-marker` to `t`, and ~ gets hidden but ` not.
This can be reproduced by launching Emacs using `emacs -Q`. Then
evaluate the code above in the *scratch* buffer. Then open an org-mode
buffer which contains text like "`code`" and "~code~". You can tell the
difference by launching Emacs using `emacs -Q` but does not evaluate the
above code.
Thank you
Emacs : GNU Emacs 29.2 (build 2, x86_64-w64-mingw32)
of 2024-02-02
Package: Org mode version 9.6.15 (release_9.6.15 @
d:/emacs_home/program/emacs/share/emacs/29.2/lisp/org/)
- [BUG] Customizing org-emphasis-alist does not work as expected [9.6.15 (release_9.6.15 @ d:/emacs_home/program/emacs/share/emacs/29.2/lisp/org/)],
Chang Xiaoduan <=