mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
All siren modules lazy-load if they can, so there's no need to lazy-require a siren module. Also this avoids the annoyance of the first time you use a feature it triggers a package install from melpa. All such things should happen as part of Emacs startup.
27 lines
703 B
EmacsLisp
27 lines
703 B
EmacsLisp
;;; siren-gitconfig.el --- jimeh's Emacs Siren: gitconfig-mode configuration.
|
|
|
|
;;; Commentary:
|
|
|
|
;; Basic configuration for gitconfig-mode.
|
|
|
|
;;; Code:
|
|
|
|
(require 'siren-programming)
|
|
|
|
(use-package gitconfig-mode
|
|
:mode "\\.gitconfig" "gitconfig\\'" "\\.git\\\/config"
|
|
|
|
:config
|
|
(defun siren-gitconfig-mode-defaults ()
|
|
(siren-prog-mode-defaults)
|
|
(setq tab-width 2)
|
|
(highlight-indentation-current-column-mode)
|
|
(run-hooks 'siren-prog-mode-hook))
|
|
|
|
(setq siren-gitconfig-mode-hook 'siren-gitconfig-mode-defaults)
|
|
(add-hook 'gitconfig-mode-hook (lambda ()
|
|
(run-hooks 'siren-gitconfig-mode-hook))))
|
|
|
|
(provide 'siren-gitconfig)
|
|
;;; siren-gitconfig.el ends here
|