feat(emacs): add cucumber major mode

This commit is contained in:
2025-12-17 23:09:08 +01:00
parent 6239775fe8
commit 537ec62fae

View File

@@ -313,14 +313,6 @@ DSLs, or /Domain Specific Languages/, are languages dedicated to some
very tasks, such as configuration languages or non-general programming very tasks, such as configuration languages or non-general programming
such as SQL. such as SQL.
*** Makefiles
#+begin_src emacs-lisp
(defun my/local-tab-indent ()
(setq-local indent-tabs-mode 1))
(add-hook 'makefile-mode-hook #'my/local-tab-indent)
#+end_src
*** Caddy *** Caddy
[[https://caddyserver.com/][Caddy]] (or /Caddyserver/) is a web server akin to Nginx or Apache which I [[https://caddyserver.com/][Caddy]] (or /Caddyserver/) is a web server akin to Nginx or Apache which I
find much easier to configure that the latter two, plus it has find much easier to configure that the latter two, plus it has
@@ -401,6 +393,19 @@ And finally, lets enable some Eldoc integration for CMake.
"yt" #'csv-yank-as-new-table)) "yt" #'csv-yank-as-new-table))
#+end_src #+end_src
*** Cucumber
[[https://cucumber.io/][Cucumber]] is a library that lets you write =.feature= files for
Behaviour-Driven Development, or /BDD/. Although not much configuration
is required to use it in Emacs, we do need to install =feature-mode= to
support the Gherkin syntax in =.feature= files.
#+begin_src emacs-lisp
(use-package feature-mode
:defer t
:straight (:build t)
:mode (("\\.feature\\'" . feature-mode)))
#+end_src
*** Dotenv *** Dotenv
It is not rare to encounter a dotenv file, that is, a file with either It is not rare to encounter a dotenv file, that is, a file with either
the ~.env~ extension or simply called ~.env~. They contain environment the ~.env~ extension or simply called ~.env~. They contain environment
@@ -457,6 +462,14 @@ visual graphs and networks.
(setq graphviz-dot-indent-width 4)) (setq graphviz-dot-indent-width 4))
#+end_src #+end_src
*** Makefiles
#+begin_src emacs-lisp
(defun my/local-tab-indent ()
(setq-local indent-tabs-mode 1))
(add-hook 'makefile-mode-hook #'my/local-tab-indent)
#+end_src
*** Markdown *** Markdown
Yes, I love org-mode and I largely prefer to use it instead of Yes, I love org-mode and I largely prefer to use it instead of
Markdown due to its far superior power and abilities. But still, Markdown due to its far superior power and abilities. But still,