mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
- Switch from highlight-indentation package to highlight-indent-guides. - Activate visual indentation in a prog-mode hook, rather than doing within each individual major mode. It was already done within all major modes based on prog-mode anyway. - Add new siren-display-indetation module and function as a central way to enable visual indetation guides. This makes switching the underlying package at some point in the future much easier.
37 lines
782 B
EmacsLisp
37 lines
782 B
EmacsLisp
;;; siren-conf.el --- jimeh's Emacs Siren: conf-mode configuration.
|
|
|
|
;;; Commentary:
|
|
|
|
;; Basic configuration for conf-mode.
|
|
|
|
;;; Code:
|
|
|
|
(require 'siren-display-indentation)
|
|
(require 'siren-fci)
|
|
(require 'siren-flyspell)
|
|
(require 'siren-linum)
|
|
(require 'siren-prog-mode)
|
|
(require 'siren-flycheck)
|
|
(require 'siren-highlight-symbol)
|
|
(require 'siren-smartparens)
|
|
|
|
(use-package conf-mode
|
|
:mode "Procfile\\'" "\\.conf\\'" "\\.cfg\\'"
|
|
:hook (conf-mode . siren-conf-mode-setup)
|
|
|
|
:init
|
|
(defun siren-conf-mode-setup ()
|
|
(siren-prog-mode-setup)
|
|
(setq tab-width 2)
|
|
|
|
(siren-display-indentation)
|
|
(fci-mode)
|
|
(flycheck-mode)
|
|
(flyspell-prog-mode)
|
|
(highlight-symbol-mode)
|
|
(linum-mode)
|
|
(smartparens-mode)))
|
|
|
|
(provide 'siren-conf)
|
|
;;; siren-conf.el ends here
|