 (setq max-lisp-eval-depth 10000)
 (setq max-specpdl-size 10000)
 
+;; https://github.com/hlissner/doom-emacs/blob/58af4aef56469f3f495129b4e7d947553f420fca/core/core.el#L184
+(setq auto-mode-case-fold nil)
+
 ;;; Temporarily avoid loading any modes during init (undone at end).
 (defvar ar/init--file-name-handler-alist file-name-handler-alist)
+(setq file-name-handler-alist nil)
+
+;; https://github.com/hlissner/doom-emacs/blob/58af4aef56469f3f495129b4e7d947553f420fca/core/core.el#L167
+(setq ad-redefinition-action 'accept)
 
 ;;; Set to t to debug (load synchronously).
 (defvar ar/init-debug-init nil)
-
-(setq file-name-handler-alist nil)
 
 ;; Match theme color early on (smoother transition).
 ;; Theme loaded in features/ui.el.


(setq gc-cons-threshold (* 384 1024 1024)
      gc-cons-percentage 0.6)

;; Default was too low.
;; Increase for better lsp performance.

(setq inhibit-splash-screen t)
(setq initial-scratch-message nil)

;; https://github.com/hlissner/doom-emacs/blob/58af4aef56469f3f495129b4e7d947553f420fca/core/core.el#L194
(setq initial-major-mode 'fundamental-mode)

;; Set momentary title.
(when (display-graphic-p)
  (setq frame-title-format "loading..."))

;; https://github.com/hlissner/doom-emacs/blob/58af4aef56469f3f495129b4e7d947553f420fca/core/core.el#L358
(unless (daemonp)
  (advice-add #'tty-run-terminal-initialization :override #'ignore)
  (add-hook 'window-setup-hook
            (defun doom-init-tty-h ()
              (advice-remove #'tty-run-terminal-initialization #'ignore)
              (tty-run-terminal-initialization (selected-frame) nil t))))

;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;; Set up package tls ;;;;

(require 'package)

