all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Fabian Braennstroem <f.braennstroem@gmx.de>
To: help-gnu-emacs@gnu.org
Subject: change font for lines starting with an asterisk
Date: Fri, 13 Apr 2007 07:57:59 +0000	[thread overview]
Message-ID: <evn5tq$2fs$1@tamarack.fernuni-hagen.de> (raw)

Hi,

I know the nice font changes in auctex, e.g. for section, and would
like to achieve this for certain files too...

Right now I can define some keywords

(define-generic-mode 'fluent-mode
  '("#")
  '("DEBUG")
  '( ("INFO" . 'font-lock-constant-face)
    ("DEBUG" . 'font-lock-keyword-face)
    ("WARN" . 'font-lock-type-face)
    ("ERROR" . 'paren-face-mismatch)
    ("WARNING" . 'font-lock-fatal-face))
  '(".jou\\'")
  nil
  "Major mode for editing fluent journal files")


and set the faces:

  (custom-set-faces
    '(  font-latex-match-title-3-keywords ((t (:height 1.2
:foreground "blue" :inherit (font-latex-title-3-face)))))
       '(font-lock-builtin-face ((t (:foreground "cyan"))))
       '(margin-face ((t (:background "magenta"))))
       '(font-lock-comment-face ((t (:foreground "green"))))
       '(font-lock-constant-face ((t (:foreground "magenta"))))
       '(font-lock-function-name-face ((t (:underline t :bold t
:foreground "blue" ))))
       '(font-lock-keyword-face ((t (:foreground "yellow"))))
       '(font-lock-string-face ((t (:foreground "red"))))
       '(font-lock-fatal-face ((t (:underline t :bold t :foreground
"red" :background "black"))))
     ;  '(font-lock-type-face ((t (:foreground "darkgreen"))))
       '(font-lock-variable-name-face ((t (:foreground "black"))))


I would like to know, how I can change the color and especially the
font size of all lines starting with an asterisk? Does anyone have
an idea for emacs  21.3.1?

Greetings!
Fabian

             reply	other threads:[~2007-04-13  7:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-13  7:57 Fabian Braennstroem [this message]
2007-04-15 18:40 ` change font for lines starting with an asterisk Fabian Braennstroem
2007-04-16 20:58   ` Fabian Braennstroem

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='evn5tq$2fs$1@tamarack.fernuni-hagen.de' \
    --to=f.braennstroem@gmx.de \
    --cc=help-gnu-emacs@gnu.org \
    /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 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.