* Disable/change foreground color for org-link
@ 2014-11-28 12:34 Daniel Friman
0 siblings, 0 replies; 2+ messages in thread
From: Daniel Friman @ 2014-11-28 12:34 UTC (permalink / raw)
To: help-gnu-emacs
Hi,
I want to disable or change the default foreground color for "org-link".
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.
Regards,
Daniel Friman
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Disable/change foreground color for org-link
[not found] <mailman.14873.1417185024.1147.help-gnu-emacs@gnu.org>
@ 2014-11-28 18:53 ` Emanuel Berg
0 siblings, 0 replies; 2+ messages in thread
From: Emanuel Berg @ 2014-11-28 18:53 UTC (permalink / raw)
To: help-gnu-emacs
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-11-28 18:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <mailman.14873.1417185024.1147.help-gnu-emacs@gnu.org>
2014-11-28 18:53 ` Disable/change foreground color for org-link Emanuel Berg
2014-11-28 12:34 Daniel Friman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).