We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6418bf9 commit f957f8dCopy full SHA for f957f8d
.doomrc
@@ -0,0 +1,21 @@
1
+;;; .doomrc --- doom runtime config -*- mode: emacs-lisp; lexical-binding: t; -*-
2
+;;; Commentary:
3
+;;; Code:
4
+(require 'doom) ; be silent, byte-compiler
5
+
6
+(after! doom-cli-ci
7
+ ;;; Commit linter types
8
+ (add-to-list 'doom-ci-commit-types 'snippet)
9
10
+ ;;; Commit linter scopes
11
+ (add-to-list 'doom-ci-commit-scopes "cli")
12
+ (add-to-list 'doom-ci-commit-scopes "docs")
13
+ (add-to-list 'doom-ci-commit-scopes #'ci-check-snippet-scope))
14
15
16
+;;; Helpers
17
+(defun ci-check-snippet-scope (scope &rest _)
18
+ "Permit mode SCOPE if a directory for it exists."
19
+ (file-directory-p (file-name-concat (dir!) (format "%s-mode" scope))))
20
21
+;;; .doomrc ends here
0 commit comments