【问题标题】:Strikethrough in Emacs image modeEmacs 图像模式中的删除线
【发布时间】:2017-03-29 15:42:14
【问题描述】:

带有.emacsloadingiimage-mode和adoc-mode:

;; Don't glare 200W in my eyes all day:
(set-foreground-color "white")
(set-background-color "black")

;; Use adoc as major mode for any file with the extension .adoc.
(require 'adoc-mode)
(setq auto-mode-alist (cons '("\\.adoc\\'" . adoc-mode) auto-mode-alist))

;; Use iimage-mode as minor mode whenever we're in adoc-mode.
(add-hook 'adoc-mode-hook 'my-adoc-mode-hook)
(defun my-adoc-mode-hook ()
  "Custom `adoc-mode' behaviours."
  (iimage-mode 1))

如果我转换文件file.adoc

.A PNG smiley
image::smiley.png[]

使用Asciidoctor转HTML

asciidoctor file.adoc

我得到了格式正确的 HTML 文件

但 Emacs 显示了一个令人分心的删除线

我该如何摆脱它?

【问题讨论】:

    标签: emacs asciidoctor


    【解决方案1】:

    您似乎遇到了内部引用的 adoc 标记字体化。通过从markup-internal-reference-face 中删除下划线,我能够使该行消失。像这样添加到您的 .emacs 的内容可能会解决它:

    (custom-set-faces
     '(markup-internal-reference-face ((t (:inherit markup-meta-face)))))
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-08-02
      • 1970-01-01
      • 2015-01-04
      • 2018-03-24
      • 1970-01-01
      相关资源
      最近更新 更多