changelog shortlog graph tags branches changeset files revisions annotate raw help

Mercurial > core / emacs/early-init.el

changeset 625: e49442cd6010
parent: fb2d92906029
child: 849f72b72b41
author: Richard Westhaver <ellis@rwest.io>
date: Sun, 25 Aug 2024 21:38:07 -0400
permissions: -rw-r--r--
description: cli tweaks
1 ;;; early-init.el --- pre-init configuration -*- lexical-binding: t; -*-
2 
3 ;; Copyright (C) 2021 The Compiler Company, LLC
4 
5 ;; Author: Richard Westhaver <ellis@rwest.io>
6 ;; Keywords: local
7 
8 ;; This program is free software; you can redistribute it and/or modify
9 ;; it under the terms of the GNU General Public License as published by
10 ;; the Free Software Foundation, either version 3 of the License, or
11 ;; (at your option) any later version.
12 ;;
13 ;; This program is distributed in the hope that it will be useful,
14 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
15 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 ;; GNU General Public License for more details.
17 ;;
18 ;; You should have received a copy of the GNU General Public License
19 ;; along with this program. If not, see <https://www.gnu.org/licenses/>.
20 ;;
21 ;; Commentary:
22 ;;
23 ;; A few snippets are added here that need to be loaded ASAP on
24 ;; startup, such as UI elements that would otherwise be loaded for a
25 ;; second and then disappear when the `init.el` file is loaded.
26 ;;
27 ;; If any of the below settings are in your `init.el`, I suggest
28 ;; migrating them to `early-init.el`.
29 ;;
30 ;;; Code:
31 (setopt inhibit-startup-buffer-menu nil
32  initial-buffer-choice t
33  use-dialog-box t
34  use-file-dialog nil
35  tool-bar-mode nil
36  menu-bar-mode nil
37  scroll-bar-mode nil)
38 
39 (setq explicit-shell-file-name "/usr/bin/bash"
40  shell-file-name "/usr/bin/bash")
41 
42 (when (and (fboundp 'native-comp-available-p)
43  (native-comp-available-p))
44  (setopt native-comp-async-report-warnings-errors nil
45  comp-deferred-compilation t
46  package-native-compile t))