[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: customize-face with default and diff-added
From: |
Aneesh Kumar K. V |
Subject: |
Re: customize-face with default and diff-added |
Date: |
Wed, 13 Oct 2010 22:11:36 +0530 |
User-agent: |
Notmuch/0.3.1-90-g8071c5c (http://notmuchmail.org) Emacs/24.0.50.3 (i686-pc-linux-gnu) |
On Wed, 13 Oct 2010 12:07:43 -0400, Chong Yidong <address@hidden> wrote:
> address@hidden (Aneesh Kumar K.V) writes:
>
> > So i have default face set and when i try to set a custom face for
> > diff-added the default face details get removed. The default value is
> > set via set default font.
>
> Could you be more specific about the exact steps you took?
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(default ((t (:inherit nil :stipple nil :background "white" :foreground
"black" :inverse-video nil :box nil :strike-through nil :overline nil
:underline nil :slant normal :weight normal :height 128 :width normal :foundry
"unknown" :family "Inconsolata")))))
I started with the above .emacs and enabled diff-mode and changed the
diff-added face. That result in the default face details to be removed
from the custom-set-faces above. The resulting .emacs was
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(diff-added ((t (:inherit diff-changed :foreground "red")))))
-aneesh