Merge branch 'main' of git.sr.ht:~marcuskammer/emacs.d
This commit is contained in:
commit
630a2c989a
1 changed files with 16 additions and 0 deletions
|
@ -5,6 +5,22 @@
|
|||
(height . 55)
|
||||
(vertical-scroll-bars)))
|
||||
|
||||
(setq frame-resize-pixelwise t)
|
||||
|
||||
(defun center-frame (&optional frame)
|
||||
"Center FRAME on the screen."
|
||||
(interactive)
|
||||
(let ((frame (or frame (selected-frame))))
|
||||
(let ((frame-width (frame-pixel-width frame))
|
||||
(frame-height (frame-pixel-height frame))
|
||||
(display-width (display-pixel-width))
|
||||
(display-height (display-pixel-height)))
|
||||
(set-frame-position frame
|
||||
(/ (- display-width frame-width) 2)
|
||||
(/ (- display-height frame-height) 2)))))
|
||||
|
||||
(add-hook 'after-make-frame-functions 'center-frame)
|
||||
|
||||
(use-package all-the-icons
|
||||
:if (display-graphic-p)
|
||||
:commands all-the-icons-install-fonts
|
||||
|
|
Loading…
Add table
Reference in a new issue