all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Faces for emphasis and footnotes in a minor-mode
@ 2022-01-27  9:31 fatiparty--- via Users list for the GNU Emacs text editor
  0 siblings, 0 replies; only message in thread
From: fatiparty--- via Users list for the GNU Emacs text editor @ 2022-01-27  9:31 UTC (permalink / raw)
  To: Help Gnu Emacs


I have the following code for setting colours for emphasis and for footnotes.  I would like to
 include this functionality to a minor-mode.  What should I do?

(defface emph-italic
  '((default :inherit italic)
    (((class color) (min-colors 88) (background dark))
     :foreground "#d166ff")
    (((class color) (min-colors 88) (background light))
     :foreground "#9e3200"))
  "Brown coloured typeface for italic emphasis.")
(setq org-emphasis-alist
      '(("/" emph-italic)) )
(with-eval-after-load 'org
  (set-face-attribute 'org-footnote nil
     :foreground "#ae6029" :background "black"
     :weight 'normal :slant 'italic :underline 'nil
     :height 0.8 :width 'expanded))





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-01-27  9:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-27  9:31 Faces for emphasis and footnotes in a minor-mode fatiparty--- via Users list for the GNU Emacs text editor

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.