My own personal emacs configuration, it has 2 parts. general.org and config.org. The general.org has all the logic of my personal setup, the config.org is for mainly for personal information not relevant to the setup. Like RSS feeds.
;; Point to root of emacs.d and additional directories.
(setq path "~/.emacs.d")
(setq additional-path "~/.emacs-additional.d")
;; Enable and dissable modules by setting them t or nil.
(setq programming t)
(setq literate t)
(setq org-roam t)
(setq applications t)
(setq embedded t)
;; Enable or dissable additional config and software. (Langtool, PlantUML and config)
(setq additional t)
;; Packaging configuration
(require 'package)
(setq package-enable-at-startup nil)
(add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/"))
(add-to-list 'package-archives '("gnu" . "http://elpa.gnu.org/packages/"))
(unless (package-installed-p 'use-package)
(package-refresh-contents)
(package-install 'use-package))
(eval-when-compile
(require 'use-package))
;; Load base config.
(org-babel-load-file "~/.emacs.d/general.org")
;; Load modules that are t.
(when programming
(org-babel-load-file (concat path "/modules/programming.org")))
(when literate
(org-babel-load-file (concat path "/modules/literate.org")))
(when additional
(org-babel-load-file (concat additional-path "/config.org")))
~/.emacs.d/ ├── general.org general config file ├── snippets location of snippets ├── modules modules loaded by .emacs ├───── literate.org literate config, org and more. ├───── programming.org programming config, LSP and more. ├───── org-roam.org org-roam config, org-roam keybindings and more.
This is my personal emacs config which started out with parts of code based on the config from matman26.