Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Org agenda entry height  #434

@ttybitnik

Description

@ttybitnik

Problem:
My dashboard agenda displays entries with a greater height than the other items (screenshot below). Using C-u C-x =, I found out they are getting this "extra" height from the face attribute org-level-1, 2, 3... (from outline-X inherit more specifically).

Everything I've tried to fix it either failed or broke my org-mode (like disabling the inherit outline from org-level). I also tried messing a bit with the dashboard-agenda-entry-format, but after a afternoon of failures, I can say it was beyond my newcomer knowledge.

Anyway, I would appreciate any help or enlightenment to solve this in a smart way.

Dashboard version: 20230108.1149
Emacs version: 27.1
Screenshot:
Screenshot from 2023-01-23 15-49-49
Dashboard related config:

  (setq inhibit-startup-message t)

  (setq initial-buffer-choice (lambda () (dashboard-refresh-buffer)(get-buffer "*dashboard*")))

  (use-package dashboard
    :ensure t
    :config
    (dashboard-setup-startup-hook)
    (setq dashboard-startup-banner "~/.emacs.d/img/dashLogo.png")
    (setq dashboard-items '((recents  . 5)
                            (projects . 5)
                            (bookmarks . 5)
                            (agenda . 5)))    
    (setq dashboard-center-content t)
    (setq dashboard-set-file-icons t)
    (setq dashboard-banner-logo-title "Welcome back, Wolper!")
    (setq dashboard-agenda-sort-strategy '(time-up))
    (setq dashboard-agenda-prefix-format "%i %-12:c %s "))

  (add-hook 'dashboard-mode-hook 'variable-pitch-mode) ; related to below which comes earlier in my config

(custom-theme-set-faces
     'user
     '(variable-pitch ((t (:family "Iosevka Aile"))))
     '(fixed-pitch ((t ( :family "Iosevka  Medium"))))
     '(org-block ((t (:inherit fixed-pitch))))
     '(org-code ((t (:inherit (shadow fixed-pitch)))))
     '(org-table ((t (:inherit fixed-pitch))))
     '(org-indent ((t (:inherit (org-hide fixed-pitch))))))

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions