emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* HELP: org-levels customization
@ 2024-10-05 12:25 Kepa
  2024-10-05 16:35 ` Dilip via General discussions about Org-mode.
  0 siblings, 1 reply; 4+ messages in thread
From: Kepa @ 2024-10-05 12:25 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

[-- Attachment #1: Type: text/plain, Size: 1148 bytes --]

Hi

I am encountering an issue while trying to customize the headlines in Org-mode.
I have taken the customization lines, corresponding to org-levels, from custom-set-faces to the body of my init file. So I have now this:

(set-face-attribute 'org-default nil :inherit 'default :family "Atkinson Hyperlegible" :foreground "#FFFFFF" :height 1.0)
(set-face-attribute 'org-level-1 nil :inherit 'org-default :height 1.5)
(set-face-attribute 'org-level-2 nil :inherit 'org-level-1 :height 1.4)
(set-face-attribute 'org-level-3 nil :inherit 'org-level-1 :height 1.2)

PROBLEM:
When I evaluate (describe-face) on any headline level, it consistently reports that it is org-level-1.
Additionally, the attributes I set for org-level-2 and lower levels do not take effect; all headers are customized as org-level-1.

In Emacs -Q there is not this issue.
I have tried to not use :inherit. No result.
I have tried to just change the color of different org-levels. No change.
I have tried bug-hunter, but it hasn't been unable to identify the cause of the problem.

Every org-level seems to be org-level-1
What could it be?

Best regards,

[-- Attachment #2: Type: text/html, Size: 3460 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: HELP: org-levels customization
  2024-10-05 12:25 HELP: org-levels customization Kepa
@ 2024-10-05 16:35 ` Dilip via General discussions about Org-mode.
  2024-10-05 20:56   ` Kepa
  2024-10-06  0:25   ` [SOLVED]: " Kepa
  0 siblings, 2 replies; 4+ messages in thread
From: Dilip via General discussions about Org-mode. @ 2024-10-05 16:35 UTC (permalink / raw)
  To: emacs-orgmode; +Cc: gnu.cognition199

[-- Attachment #1: Type: text/plain, Size: 851 bytes --]

> In Emacs -Q there is not this issue.

This indicates the issue is with your config.

I suspect it can be from theme.

Are you sure there is no config editing org-level-* faces somewhere?

> (set-face-attribute 'org-level-1 nil :inherit 'org-default :height 1.5)
> (set-face-attribute 'org-level-2 nil :inherit 'org-level-1 :height 1.4)
> (set-face-attribute 'org-level-3 nil :inherit 'org-level-1 :height 1.2)

Also do note height work as an increment from inherited value. It does
override. So according to this config org-level-2 height will be 1.4x
times that of org-level-1.

> When I evaluate (describe-face) on any headline level, it consistently reports that it is org-level-1.
I assume you are calling it interactively (via M-x), this gets
completing-read and allows you to select. Maybe you got only org-level-1
and selectec it?

Try this,

[-- Attachment #2.1: Type: text/plain, Size: 172 bytes --]

#+begin_src elisp
(set-face-attribute 'org-level-1 nil :height 1.5 :foreground "#b4befe")
(set-face-attribute 'org-level-2 nil :height 1.4 :foreground "#f5deb5")
#+end_src

[-- Attachment #2.2: Type: text/html, Size: 985 bytes --]

[-- Attachment #3: Type: text/plain, Size: 109 bytes --]


Again, if it works in emacs -Q or vanilla org-mode. You need to debug
your init and theme.

-- 
Best,
Dilip

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: HELP: org-levels customization
  2024-10-05 16:35 ` Dilip via General discussions about Org-mode.
@ 2024-10-05 20:56   ` Kepa
  2024-10-06  0:25   ` [SOLVED]: " Kepa
  1 sibling, 0 replies; 4+ messages in thread
From: Kepa @ 2024-10-05 20:56 UTC (permalink / raw)
  To: Dilip; +Cc: emacs-orgmode@gnu.org

[-- Attachment #1: Type: text/plain, Size: 2071 bytes --]

On 05/10/2024 18:35, idlip at protonmail.com wrote:
> > In Emacs -Q there is not this issue.
>
> This indicates the issue is with your config.
Yes, that's for sure.
>
> I suspect it can be from theme.

When I make a search for "theme" word in my init.el file, I get just one 
result:

  '(custom-safe-themes '(default))

>
> Are you sure there is no config editing org-level-* faces somewhere?

When I make a search for "org-level", I only get org-level as 
inheritance (aside from the set-face-attribute I shared before). Example:

  '(org-upcoming-deadline ((t (:inherit org-level-3))))

>
> > (set-face-attribute 'org-level-1 nil :inherit 'org-default :height 1.5)
> > (set-face-attribute 'org-level-2 nil :inherit 'org-level-1 :height 1.4)
> > (set-face-attribute 'org-level-3 nil :inherit 'org-level-1 :height 1.2)
>
> Also do note height work as an increment from inherited value. It does
> override. So according to this config org-level-2 height will be 1.4x
> times that of org-level-1.
Yes, the problem by now is that I don't get any change in org-level-2, 
3, etc. whatever the value I set.
>
> > When I evaluate (describe-face) on any headline level, it consistently
> > reports that it is org-level-1.
> I assume you are calling it interactively (via M-x), this gets
> completing-read and allows you to select. Maybe you got only org-level-1
> and selectec it?

I call (describe-face) interactively, and it offers a default selection.

This default selection is always the face where the point is on. 
Although the point was on a headline of level 2, 3, etc, when calling 
(describe-face) the default selected face is always org-level-1.

>
> Try this,
>
> (set-face-attribute 'org-level-1 nil :height 1.5 :foreground "#b4befe")
> (set-face-attribute 'org-level-2 nil :height 1.4 :foreground "#f5deb5")

org-level-1 changes are applied to every org-level:

https://ibb.co/XW2KSF3

>
> Again, if it works in emacs -Q or vanilla org-mode. You need to debug
> your init and theme.

I know. I tried bug hunter.

Any help?

>
> -- 
> Best,
> Dilip
Best regards!

[-- Attachment #2: Type: text/html, Size: 3250 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [SOLVED]: org-levels customization
  2024-10-05 16:35 ` Dilip via General discussions about Org-mode.
  2024-10-05 20:56   ` Kepa
@ 2024-10-06  0:25   ` Kepa
  1 sibling, 0 replies; 4+ messages in thread
From: Kepa @ 2024-10-06  0:25 UTC (permalink / raw)
  To: Dilip; +Cc: emacs-orgmode@gnu.org

[-- Attachment #1: Type: text/plain, Size: 403 bytes --]

Got it:
'(org-n-level-faces 1)

8-)

Best regards

From: idlip at protonmail.com <jliwkjfpyfvclaguqulkofdz@simplelogin.co>
Sent: Saturday, October 5, 2024 6:36 PM
Cc: gnu.cognition199@slmails.com
Subject: Re: HELP: org-levels customization


(set-face-attribute 'org-level-1 nil :height 1.5 :foreground "#b4befe")

(set-face-attribute 'org-level-2 nil :height 1.4 :foreground "#f5deb5")

[-- Attachment #2: Type: text/html, Size: 4069 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-10-06  0:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-05 12:25 HELP: org-levels customization Kepa
2024-10-05 16:35 ` Dilip via General discussions about Org-mode.
2024-10-05 20:56   ` Kepa
2024-10-06  0:25   ` [SOLVED]: " Kepa

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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).