init.el (1280B)
1 ;;; init.el --- init.el -*- lexical-binding: t -*- 2 3 ;;; Commentary: 4 5 ;; trogloxene's Emacs 6 ;; https://trogloxene.org 7 8 ;;; Code: 9 10 (add-to-list 'load-path 11 (expand-file-name (concat user-emacs-directory "lisp"))) 12 13 (setq custom-file (expand-file-name "custom.el" user-emacs-directory)) 14 (load custom-file t) 15 16 (defconst *is-mac* (eq system-type 'darwin)) 17 (defconst *is-emacs-mac-port* (featurep 'mac)) 18 (defconst *is-linux* (eq system-type 'gnu/linux)) 19 (defconst *is-windows* (or (eq system-type 'ms-dos) (eq system-type 'windows-nt))) 20 (defconst *is-android* (if (getenv "TERMUX_VERSION") t nil)) 21 22 (if (or (display-graphic-p) *is-android*) 23 (progn 24 (require 'init-custom) 25 (require 'init-startup) 26 (require 'init-elpa) 27 (require 'init-base) 28 (require 'init-edit) 29 (require 'init-completion) 30 (require 'init-package) 31 (require 'init-vc) 32 (require 'init-org) 33 (require 'init-prog) 34 (require 'init-elisp) 35 (require 'init-window) 36 (require 'init-exwm) 37 (require 'init-dired) 38 (require 'init-gptel) 39 (require 'init-ui) 40 (require 'init-kbd-func) 41 (require 'init-kbd) 42 (require 'init-segmentation) 43 (require 'init-local nil t)) 44 (require 'init-terminal)) 45 ;;; init.el ends here