all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* change font for lines starting with an asterisk
@ 2007-04-13  7:57 Fabian Braennstroem
  2007-04-15 18:40 ` Fabian Braennstroem
  0 siblings, 1 reply; 3+ messages in thread
From: Fabian Braennstroem @ 2007-04-13  7:57 UTC (permalink / raw)
  To: help-gnu-emacs

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: change font for lines starting with an asterisk
  2007-04-13  7:57 change font for lines starting with an asterisk Fabian Braennstroem
@ 2007-04-15 18:40 ` Fabian Braennstroem
  2007-04-16 20:58   ` Fabian Braennstroem
  0 siblings, 1 reply; 3+ messages in thread
From: Fabian Braennstroem @ 2007-04-15 18:40 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,

me again ...

Fabian Braennstroem schrieb am 04/13/2007 07:57 AM:
> 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?

If nobody has an idea, how one can change lines starting with an
'*', you might know how to adjust the font size. This should be
possible in some way... auctex is doing it for section lines in a
latex file.
Would be nice, if you have an idea.

Greetings!
Fabian

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: change font for lines starting with an asterisk
  2007-04-15 18:40 ` Fabian Braennstroem
@ 2007-04-16 20:58   ` Fabian Braennstroem
  0 siblings, 0 replies; 3+ messages in thread
From: Fabian Braennstroem @ 2007-04-16 20:58 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,
it was much easier than I thought. Those asterisk are colored in
org-mode where just added the desired font. Sorry for bothering.

Greetings!
Fabian

Fabian Braennstroem schrieb am 04/15/2007 06:40 PM:
> Hi,
> 
> me again ...
> 
> Fabian Braennstroem schrieb am 04/13/2007 07:57 AM:
>> 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?
> 
> If nobody has an idea, how one can change lines starting with an
> '*', you might know how to adjust the font size. This should be
> possible in some way... auctex is doing it for section lines in a
> latex file.
> Would be nice, if you have an idea.
> 
> Greetings!
> Fabian

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-04-16 20:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-13  7:57 change font for lines starting with an asterisk Fabian Braennstroem
2007-04-15 18:40 ` Fabian Braennstroem
2007-04-16 20:58   ` Fabian Braennstroem

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.