Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • Sign in / Register
  • modus-themes modus-themes
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 9
    • Issues 9
    • List
    • Boards
    • Service Desk
    • Milestones
    • Requirements
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Protesilaos Stavrou
  • modus-themesmodus-themes
  • Issues
  • #40
Closed
Open
Created May 01, 2020 by Ben@_b

Some suggested additional org-mode defaults

Great theme, but to make it even nicer, I set some user defaults in my configuration. Perhaps some of these could be incorporated into the theme?

(use-package cus-face
  :config
  (custom-set-faces
   '(org-document-title ((t (:height 1.8))))
   '(org-block-begin-line ((t (:inherit 'fixed-pitch))))
   '(org-block-end-line ((t (:inherit 'fixed-pitch))))
   '(org-verbatim ((t (:inherit 'fixed-pitch))))
   '(org-code ((t (:inherit 'fixed-pitch))))
   '(org-block ((t (:inherit 'fixed-pitch))))
   '(org-table ((t (:inherit 'fixed-pitch))))
   '(org-meta-line ((t (:inherit 'fixed-pitch))))
   '(org-document-info-keyword ((t (:inherit 'fixed-pitch))))
   '(org-indent ((t (:inherit (fixed-pitch org-hide)))))
   '(org-level-1 ((t (:extend t))))
   '(org-level-2 ((t (:extend t))))
   '(org-level-3 ((t (:extend t))))
   '(org-level-4 ((t (:extend t))))
   '(org-level-5 ((t (:extend t))))
   '(org-level-6 ((t (:extend t))))
   '(org-level-7 ((t (:extend t))))
   '(org-level-8 ((t (:extend t))))))

Now, let me explain these.

Making org-document-title bigger is important when used in conjunction with (setq org-hidden-keywords '(title)) (which I know is popular) to distinguish it from other text; it would be strange to have the first heading bigger than the document title. This is what leuven-theme does and it's very nice.

The fixed-pitch changes are great to have as a default, in normal circumstances this makes no difference, but it becomes important when (variable-pitch-mode) is turned on (which I personally hook onto the text-mode-hook).

The :extend is I think only available on Emacs 27, but when used with (setq modus-operandi-theme-section-headings t) it is very nice indeed.

I hope this is of some help, but if not I will just leave it as my own personal config.

Thanks!

Assignee
Assign to
Time tracking