* 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 --
2014-11-28 12:34 Disable/change foreground color for org-link Daniel Friman
[not found] <mailman.14873.1417185024.1147.help-gnu-emacs@gnu.org>
2014-11-28 18:53 ` Emanuel Berg
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.