mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
There are a few major modes which are not based on prog-mode, that I want to behave like prog-mode. Previously each did nearly all the same setup that's done via the prog-mode hooks. Now instead let's actually run runs the hooks for prog-mode.
23 lines
462 B
EmacsLisp
23 lines
462 B
EmacsLisp
;;; siren-cucumber.el --- jimeh's Emacs Siren: feature-mode configuration.
|
|
|
|
;;; Commentary:
|
|
|
|
;; Basic configuration for feature-mode.
|
|
|
|
;;; Code:
|
|
|
|
(require 'siren-prog-mode)
|
|
|
|
(use-package feature-mode
|
|
:mode "\\.feature\\'"
|
|
:interpreter "cucumber"
|
|
:hook (feature-mode . siren-feature-mode-setup)
|
|
|
|
:init
|
|
(defun siren-feature-mode-setup ()
|
|
(run-hooks 'prog-mode-hook)
|
|
(setq tab-width 2)))
|
|
|
|
(provide 'siren-cucumber)
|
|
;;; siren-cucumber.el ends here
|