Minimal configuration to make Emacs usable for my own personal workflow. This does little in the ways of improving the visuals, only removing what's included by default and not required. Read more about my technique in my post *Immutable Emacs*[fn:1].
* Startup
+ Packages are managed with *straight.el*[fn:2]
+ Packages are installed with *use-package*[fn:3]
Emacs creates a lot of files relative to ~user-emacs-directory~, these files are not part of this immutable configuration and do not belong in the emacs directory. How can we solve this issue? Shortly after initialization, before most packages load, we change the value to ~dotfiles/cache~. I elaborate more on the technique in my post *Immutable Emacs*[fn:1]
#+begin_src emacs-lisp
(setq user-emacs-directory dotfiles/cache)
#+end_src
Because this project uses version-control, we can disable more unwanted features:
+ Lock files
+ Backup files
#+begin_src emacs-lisp
(setq create-lockfiles nil
make-backup-files nil)
#+end_src
* Packages
Download and install packages using *straight.el*[fn:2], a functional package manager that integrates with *use-package*[fn:3], giving more control over sourcing packages.
+ Use the development branch
+ Integrate with *use-package*[fn:3]
** Options
Apply the configurations prior to bootstrapping the package manager, by setting (writing) to the variables that =straight= will ultimately read from.
#+begin_src emacs-lisp
(setq straight-repository-branch "develop"
straight-use-package-by-default t)
#+end_src
** Setup
Bootstrap the package manager, downloading, installing, or configuring depending on the state of the configuration. All packages build from source, pinned to specific git commit hashes.
*Org mode*[fn:4] is one of the hallmark features of Emacs, and provides the basis for my *Literate Programming*[fn:5] platform. It's essentially a markdown language with rich features for project management, scheduling, development, and writing. It's hard to convey everything within its capabilities.
Complete the integration with *use-package*[fn:3] by installing it with *straight.el*[fn:2].
+ Setup ~shell~ and ~emacs-lisp~ as *Babel Languages*[fn:6]
+ Configure *Structure Templates*[fn:7] for both languages
@ -106,42 +84,6 @@ Emacs has a long history of running on machines without gigabytes of available m
gnutls-min-prime-bits 4096)
#+end_src
* Babel
*Organize your plain life in plain text*
*Org mode*[fn:4] is one of the hallmark features of Emacs, and provides the basis for my *Literate Programming*[fn:5] platform. It's essentially a markdown language with rich features for project management, scheduling, development, and writing. It's hard to convey everything within its capabilities.
+ Setup ~shell~ and ~emacs-lisp~ as *Babel Languages*[fn:6]
+ Configure *Structure Templates*[fn:7] for both languages