Gwenael Moreau wrote:
>
> Comment peut-on dans un .emacs définir :
> -- La taille de la police
moi je le fait dans mon .Xdefaults:
!!!!!!!!!!!!!!
! (X)Emacs !
!!!!!!!!!!!!!!
!Emacs.default.attributeFont: -*-CourieR-MeDium-R-*-*-*-140-75-75-*-*-ISO8859-1
Emacs.default.attributeFont: 9x15
Emacs.default.attributeBackground: AntiqueWhite
Emacs.default.attributeForeground: black
par exemple....
> -- Les couleurs qu'utilisent emacs lorsqu'il met en couleur les fichiers
> fortran latex ...
Tu dois pouvoir trouver ca dans le sample.emacs qui est livre avec...
moi j'ai un truc du genre:
;; If you want the default colors, you could do this:
;; (setq font-lock-use-default-fonts nil)
;; (setq font-lock-use-default-colors t)
;; but I want to specify my own colors, so I turn off all
;; default values.
;;(setq font-lock-use-default-fonts t)
;;(setq font-lock-use-default-colors nil)
;;(setq font-lock-use-fonts t)
(setq font-lock-use-colors nil)
;;(setq font-lock-use-maximal-decoration t)
(require 'font-lock)
;; Mess around with the faces a bit. Note that you have
;; to change the font-lock-use-default-* variables *before*
;; loading font-lock, and wait till *after* loading font-lock
;; to customize the faces.
;; string face is green
(set-face-foreground 'font-lock-string-face "green4")
;; comments are italic and blue
;;
;; (I use copy-face instead of make-face-italic/make-face-bold
;; because the startup code does intelligent things to the
;; 'italic and 'bold faces to ensure that they are different
;; from the default face. For example, if the default face
;; is bold, then the 'bold face will be unbold.)
(copy-face 'italic 'font-lock-comment-face)
;; Underling comments looks terrible on tty's
(set-face-underline-p 'font-lock-comment-face nil 'global 'tty)
(set-face-highlight-p 'font-lock-comment-face t 'global 'tty)
(set-face-foreground 'font-lock-comment-face "blue")
;; doc strings are blue
(copy-face 'font-lock-comment-face 'font-lock-doc-string-face)
(set-face-foreground 'font-lock-comment-face "blue")
;; function names are bold and red
(copy-face 'bold 'font-lock-function-name-face)
(set-face-foreground 'font-lock-function-name-face "red")
;; misc. faces
(and (find-face 'font-lock-preprocessor-face) ; 19.13 and above
(copy-face 'bold 'font-lock-preprocessor-face))
(copy-face 'italic 'font-lock-type-face)
(set-face-foreground 'font-lock-type-face "red")
(copy-face 'bold 'font-lock-keyword-face)
))
je garanti rien...
manu