 (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 inhibit-splash-screen t)
(setq initial-scratch-message nil)

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

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

;; Do not load outdated byte code files.
(setq load-prefer-newer t)

(require 'package)


(setq custom-file "~/.emacs.d/custom.el")
(when (file-exists-p custom-file)
  (load custom-file))

;; From https://irreal.org/blog/?p=8243
(setq gnutls-algorithm-priority "NORMAL:-VERS-TLS1.3")
