-
Notifications
You must be signed in to change notification settings - Fork 7
/
early-init.el
60 lines (46 loc) · 1.96 KB
/
early-init.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
;;; early-init.el --- Package setup -*- lexical-binding: t; -*-
;; Copyright (C) 2020-2023 Andy Jordan
;; Author: Andy Jordan <[email protected]>
;; This file is not part of GNU Emacs.
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
;; (at your option) any later version.
;; This program is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;; GNU General Public License for more details.
;; You should have received a copy of the GNU General Public License
;; along with this program. If not, see <https://www.gnu.org/licenses/>.
;;; Commentary:
;; This is `early-init.el' used by Emacs 27+ for package configuration.
;;; Code:
;; Avoiding bugs.
(setq load-prefer-newer t)
;; Improved TLS Security.
(with-eval-after-load 'gnutls
(custom-set-variables
'(gnutls-verify-error t)
'(gnutls-min-prime-bits 3072)))
;; Package setup.
(eval-when-compile
(require 'package)
(add-to-list 'package-archives
'("melpa" . "https://melpa.org/packages/") t)
(add-to-list 'package-archives
'("org" . "https://orgmode.org/elpa/") t))
;; Frame parameters.
;; https://www.gnu.org/software/emacs/manual/html_node/elisp/Layout-Parameters.html
(setq default-frame-alist
'(;; Set default frame size and position.
(height . 50) (width . 100)
(top . 0) (left . 0)
;; Disable archaic bars.
(vertical-scroll-bars . nil)
(horizontal-scroll-bars . nil)
(tool-bar-lines . 0)
;; Fix invisible buffer content when X is tunneled
;; https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25474
(inhibit-double-buffering . t)))
(provide 'early-init)
;;; early-init.el ends here