seagle0128 / .emacs.d

Centaur Emacs - A Fancy and Fast Emacs Configuration
https://seagle0128.github.io/.emacs.d/
GNU General Public License v3.0
1.97k stars 269 forks source link

Emacs 窗口初始化无法设置 size 和 position #453

Closed harisonkhlil closed 2 months ago

harisonkhlil commented 2 months ago

在 init.el 最后加入了

;; specific window style and size
(add-to-list 'default-frame-alist '(undecorated . t))
(add-hook 'after-init-hook
          (lambda ()
            (set-frame-size (selected-frame) 105 45)
            (set-frame-position (selected-frame) 0 20))
          t)

(add-to-list 'default-frame-alist '(undecorated . t)) 生效了,但是后面的不生效

seagle0128 commented 2 months ago

Please see initial-frame-alist.

https://github.com/seagle0128/.emacs.d/blob/619562841947332eb4ee421c6000306f3aa836cd/lisp/init-ui.el#L51-L55