CCE

Code Formatting Aggressively

Emacs has a package which will dynamically re-align code whenever I make changes to the buffer. For languages that don't use whitespace for defining context (python makefile for example) this is optimal and it does a good job showing me when I've made syntax errors. Sometimes it's a bit too annoying but alas.

emacs-lisp:tangle ~/nix/lisp/aggressive-indent.el
(provide 'cce/aggressive-indent)
(use-package aggressive-indent
  :diminish "⮕"
  :config
  (add-to-list 'aggressive-indent-excluded-modes 'shell-mode)
  (add-to-list 'aggressive-indent-excluded-modes 'nix-mode)
  (add-to-list 'aggressive-indent-excluded-modes 'rustic-mode)
  (add-to-list 'aggressive-indent-excluded-modes 'rust-mode)
  (global-aggressive-indent-mode))