-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathearly-init.el
21 lines (18 loc) · 1002 Bytes
/
early-init.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
;; Prevent pauses due to garbage collection by increasing the threshold
(setq gc-cons-threshold (* 50 1000 1000))
(add-to-list 'default-frame-alist '(ns-transparent-titlebar . nil)) ;; Ensure that the title bar is shown
(add-to-list 'default-frame-alist '(ns-appearance . light)) ;; Make the title bar match the appearance
(add-to-list 'initial-frame-alist '(fullscreen . maximized)) ;; Start emacs maximised
(setq ns-use-proxy-icon nil) ;; Hide the file icon in the title bar
(tool-bar-mode -1) ;; Hide the icons in the title bar
(select-frame-set-input-focus (selected-frame))
;; (unless window-system
;; (add-to-list 'default-frame-alist '(undecorated . t)))
;; Uncomment these lines to determine startup time
;; (add-hook 'emacs-startup-hook
;; (lambda ()
;; (message "Emacs ready in %s with %d garbage collections."
;; (format "%.2f seconds"
;; (float-time
;; (time-subtract after-init-time before-init-time)))
;; gcs-done)))