changelog shortlog graph tags branches changeset files revisions annotate raw help

Mercurial > core / emacs/init.el

changeset 623: a304c9713a51
parent: 34bacb513d55
child: 849f72b72b41
author: Richard Westhaver <ellis@rwest.io>
date: Sun, 25 Aug 2024 00:14:17 -0400
permissions: -rw-r--r--
description: init graph.el
1 ;;; init.el --- emacs init -*- lexical-binding: t -*-
2 
3 ;; default init file for GNU Emacs.
4 
5 ;;; Code:
6 (add-to-list 'load-path (expand-file-name "lib" user-emacs-directory))
7 
8 (dolist (x '("util.el" "default.el"))
9  (let ((y (concat user-emacs-directory x)))
10  (if (and (native-comp-available-p) (not (eq system-type 'darwin)))
11  (native-compile y)
12  (byte-compile-file y))
13  (load y nil t)))
14 
15 (add-hook 'after-init-hook (load-keys))
16 
17 (add-hook 'after-init-hook (if (and (boundp 'user-custom-file) (file-exists-p user-custom-file))
18  (load-file user-custom-file)))
19 
20 (add-hook 'after-init-hook 'load-default-theme)