#+title: Setup Crafted Emacs User Configuration File #+PROPERTY: header-args:emacs-lisp :tangle ./init.el :mkdirp yes * Basic configuration ** Set import directories for =crafted-emacs= #+begin_src emacs-lisp ;;; init.el -- Fschl Crafted Emacs user customization file -*- lexical-binding: t; -*- ;; This file is generated from the .org-file with the same name. If you want to edit the ;; configuration, DO NOT edit this .el-file, edit .org, instead. (setq user-emacs-directory "~/.config/emacs/") (setq crafted-emacs-home (expand-file-name "crafted-emacs/" user-emacs-directory)) (setq custom-file (expand-file-name "custom.el" user-emacs-directory)) (when (and custom-file (file-exists-p custom-file)) (load custom-file nil :nomessage)) (load (expand-file-name "modules/crafted-init-config" crafted-emacs-home)) #+end_src ** Add selected =crafted-emacs= packages #+begin_src emacs-lisp (require 'crafted-completion-packages) (require 'crafted-evil-packages) (require 'crafted-org-packages) (require 'crafted-ui-packages) (require 'crafted-ide-packages) (require 'crafted-writing-packages) (package-install-selected-packages :noconfirm) #+end_src ** Load selected =crafted-emacs= packages #+begin_src emacs-lisp (require 'crafted-defaults-config) (require 'crafted-startup-config) (require 'crafted-completion-config) (require 'crafted-evil-config) (require 'crafted-org-config) (require 'crafted-ui-config) (require 'crafted-ide-config) (require 'crafted-writing-config) (unless crafted-startup-inhibit-splash (setq initial-buffer-choice #'crafted-startup-screen)) #+end_src ** Load my custom files #+begin_src emacs-lisp (defvar fschl-org-file (expand-file-name "fschl-org.el" user-emacs-directory)) (when (and fschl-org-file (file-exists-p fschl-org-file)) (load fschl-org-file nil :nomessage)) (defvar fschl-ide-file (expand-file-name "fschl-ide.el" user-emacs-directory)) (when (and fschl-ide-file (file-exists-p fschl-ide-file)) (load fschl-ide-file nil :nomessage)) #+end_src