CONFIG

Emacs Prelude config

#OrgConfig #emacs
Published — Updated

The Prelude experience is somewhere in between better-defaults and Doom. Thinks more about features than Better, but not as intensely customized as Doom. You can still get useful information from the default Emacs documentation. Oh, and Prelude has very nice online documentation.

This config is pretty bare right now. That’s because it’s my latest “Emacs bankruptcy” config. I only wanted needed enough to tangle and publish these pages.

Not to worry. It’ll soon be twisted beyond recognition.

Specify prelude modules to load

This is one of those big files where you comment out the lines you don’t need. I won’t drop the whole file here. Mostly enabled stuff for my favorite Web and server development languages.

Set up additional personalizations

Prelude looks in ~/.emacs.prelude.d/personal/ on my machine — probably ~/.emac.d/personal/ on yours — for personalization changes. You can throw as many files as you want in there. For now, I’ll just throw all these blocks into one file. If that doesn’t work? Well okay. I’ll fix it after I put out the fires.

  <<prelude+lua>>
  <<prelude+ox-hugo>>
  <<prelude+persp-mode>>

Lua

I mainly need lua-mode to configure AwesomeWM. But someday I’ll dig deeper into Lua.

  (prelude-require-package 'lua-mode)

  (autoload 'lua-mode "lua-mode" "Lua editing mode." t)
  (add-to-list 'auto-mode-alist '("\\.lua$" . lua-mode))
  (add-to-list 'interpreter-mode-alist '("lua" . lua-mode))

Ox-Hugo

I need ox-hugo to publish these settings through Hugo as anything but one huge HTML file.

  (prelude-require-package 'ox-hugo)

  (with-eval-after-load 'ox
    (require 'ox-hugo))

persp-mode

  (prelude-require-package 'persp-mode)

  (with-eval-after-load "persp-mode"
    (setq wg-morph-on nil)
    (setq persp-autokill-buffer-on-remove 'kill-weak)
    (add-hook 'window-setup-hook #'(lambda (persp-mode 1))))