mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
25 lines
578 B
EmacsLisp
25 lines
578 B
EmacsLisp
;;; siren-prog-mode.el --- jimeh's Emacs Siren: defaults for programming modes
|
|
|
|
;;; Commentary:
|
|
|
|
;; Basic configuration shared across all programming languages.
|
|
|
|
;;; Code:
|
|
|
|
(use-package prog-mode
|
|
:ensure nil ;; loaded from emacs built-ins
|
|
: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))
|
|
|
|
(visual-line-mode t)
|
|
(whitespace-mode t)))
|
|
|
|
(provide 'siren-prog-mode)
|
|
;;; siren-prog-mode.el ends here
|