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

Skip to content

Dashboard frame not centered with emacsclient #430

@ThibaultGH

Description

@ThibaultGH

Hi there,

I launch an emacs server when my computer boots and launch new frame with emacsclient.
Don't know exactly why but a new frame with emacsclient -c bounded to CTRL-Alt-e (or C-M-e) will end up with a dashboard frame that is pushed to the right and not centered. Not very important but dont look good and looking good is the point of this package ^^'
How could I fix that issue ?

Here is my config for dashboard in my init.el :

;; Dashboard and its configuration
(use-package dashboard
  :ensure t
  :config
  (dashboard-setup-startup-hook))

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

;; Set the title
(setq dashboard-banner-logo-title "Welcome to Emacs Dashboard")
;; Set the banner
(setq dashboard-startup-banner 'logo)
;; Value can be
;; - nil to display no banner
;; - 'official which displays the official emacs logo
;; - 'logo which displays an alternative emacs logo
;; - 1, 2 or 3 which displays one of the text banners
;; - "path/to/your/image.gif", "path/to/your/image.png" or "path/to/your/text.txt" which displays whatever gif/image/text you would prefer
;; - a cons of '("path/to/your/image.png" . "path/to/your/text.txt")

;; Content is not centered by default. To center, set
(setq dashboard-center-content t)

;; To disable shortcut "jump" indicators for each section, set
(setq dashboard-show-shortcuts t)

;; What widget to show
(setq dashboard-items '((recents  . 5)
                        (projects . 5)))

And here is an image of the rendering :

DashboardNotCentered

Metadata

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