mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
This allows specific major-modes to disable hl-line-mode, which is desired some terminal/shell modes like vterm where the hl-line flickers constantly while typing.
29 lines
655 B
EmacsLisp
29 lines
655 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)
|
|
(hl-line-mode t)
|
|
(visual-line-mode t)
|
|
(whitespace-mode t)))
|
|
|
|
(provide 'siren-prog-mode)
|
|
;;; siren-prog-mode.el ends here
|