mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
Instead of directly using the my current favorite indentation highlighting package in various places, only use the siren-display-indentation function. This lets me control it from a single central place.
28 lines
634 B
EmacsLisp
28 lines
634 B
EmacsLisp
;;; siren-prog-mode.el --- jimeh's Emacs Siren: defaults for programming modes
|
|
|
|
;;; Commentary:
|
|
|
|
;; Basic configuration shared across all programming languages.
|
|
|
|
;;; Code:
|
|
|
|
(require 'siren-display-indentation)
|
|
|
|
(use-package prog-mode
|
|
:straight (:type built-in)
|
|
:hook
|
|
(prog-mode . siren-prog-mode-setup)
|
|
|
|
:init
|
|
(defun siren-prog-mode-setup ()
|
|
"Default coding hook, useful with any programming language."
|
|
(setq fill-column 80
|
|
whitespace-action '(auto-cleanup))
|
|
|
|
(siren-display-indentation 1)
|
|
(visual-line-mode t)
|
|
(whitespace-mode t)))
|
|
|
|
(provide 'siren-prog-mode)
|
|
;;; siren-prog-mode.el ends here
|