多くの掘り下げの後、Orgまたは一般的にこれを調整する組み込みのオプションはないと思われます。イメージシステムには、デフォルトの背景をカスタマイズする方法がありません。orgには:background
プロパティを設定する方法がありません。しかし、ほとんどの画像が:background
の表示プロパティをサポートしているように見えます。
Orgにこの機能を追加しました(読み込み:1行の変更で .emacs.d
にコピー&ペースト) org-display-inline-images
。
むしろ時間がかかるのでここでは関数を再現しません。関数の51行目は次のようになります。
(setq img (save-match-data (create-image file type nil :width width)))
nil
(透明な背景)または色を保持できる新しいカスタマイズ可能な変数 org-inline-image-background
を定義しました。
(defcustom org-inline-image-background nil
"The color used as the default background for inline images.
When nil, use the default face background."
:group 'org
:type '(choice color (const nil)))
次に、51行目に追加しました。
(setq img (save-match-data (create-image file type nil :width width
:background org-inline-image-background)))
これは美しく機能し、カラーピッカーを使用してカスタマイズすることができるので、私のすべての要件を満たします。
