Files
.emacs.d/modules/languages/siren-prog-mode.el
Jim Myhrberg f0e8bd2388 chore(editor): Use siren-display-indentation exclusively
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.
2020-03-30 21:57:32 +01:00

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