summary refs log tree commit diff stats
path: root/user/emacs/early-init.el
blob: d24c661d93a6c8d6220c50fc5b9f65b3fad8da44 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
(setq inhibit-startup-screen t
      initial-scratch-message ""
      initial-major-mode 'fundamental-mode
      frame-inhibit-implied-resize t
      byte-compile-warnings '(not free-vars unresolved noruntime lexical make-local cl-functions))

(require 'xdg)
(startup-redirect-eln-cache
 (expand-file-name "emacs/native-compile"
                   (xdg-cache-home)))

;; Disable all the bars, unless on macOS, in which case, keep the menu bar.
(unless (eq window-system 'ns)
  (menu-bar-mode -1))
(scroll-bar-mode -1)
(tool-bar-mode -1)
(set-fringe-mode '(4 . 4))

(setenv "LSP_USE_PLISTS" "true") ; must match with lsp-mode override