Skip to content

How to Center Stuff #22

Open
Open
@psionic-k

Description

Writing this down for anyone hacking on the problem.

Use of a line-prefix with a display-property using specified space and the center can, with a bit of elbow grease on the width of text, apply an overlay to center arbitrary contents. Read the Elisp manual entry on text properties and specified space.

It's a bit hairy to write the expressions just from reading the docs. The dashboard package has both image and text examples to look at using (text-properties-at (point))

I am not sure if actions or headings or headers are most valuable to center first. Maybe we want to center the slide contents separately from the header.

A "title" slide using such centering is my most likely first application of the idea. It's possible to turn the header off, narrow the heading for a slide, center all the contents, and that is a "title" slide.

That's all hacky, but dslide is built to readily accommodate hacking anywhere that features are not baked in 🤠

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions