help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Disable/change foreground color for org-link


From: Emanuel Berg
Subject: Re: Disable/change foreground color for org-link
Date: Fri, 28 Nov 2014 19:53:48 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)

Daniel Friman <daniel.friman@fripost.org> writes:

> It works well to do this manually using
> customize-face and unchecking the org-link option.
> But I am not able to update the init file properly
> for org-mode to get this working. Please point me in
> the right direction how to do this.

There are many ways to set the colors of faces.

For just the foreground, there is
`set-face-foreground'. However I always want the least
specific form, and then I'll fill in the specifics
myself :)

Try this:

(custom-set-faces
  '(default ; your face here
     ((t (:foreground "cyan"
          :background "black"))))) ; add more properties here

Finding out what the face is called is actually the
first step. You can use this defun to find out the
face name at point:

(defun what-face (pos)
  (interactive "d")
  (let ((face (or (get-char-property (point) 'read-face-name)
                  (get-char-property (point) 'face))))
    (if face (message " Face: %s" face)
      (message " No face at %d." pos) )))

Check out this link for examples:

http://user.it.uu.se/~embe8573/conf/emacs-init/faces.el

-- 
underground experts united


reply via email to

[Prev in Thread] Current Thread [Next in Thread]