Skip to content

Commit

Permalink
dev: add .doomrc
Browse files Browse the repository at this point in the history
bin/doom now loads projects' .doomrc instead of .github/ci.el.

Ref: doomemacs/doomemacs@9b8ed397e8e7
  • Loading branch information
hlissner committed Aug 7, 2022
1 parent 6418bf9 commit f957f8d
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .doomrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
;;; .doomrc --- doom runtime config -*- mode: emacs-lisp; lexical-binding: t; -*-
;;; Commentary:
;;; Code:
(require 'doom) ; be silent, byte-compiler

(after! doom-cli-ci
;;; Commit linter types
(add-to-list 'doom-ci-commit-types 'snippet)

;;; Commit linter scopes
(add-to-list 'doom-ci-commit-scopes "cli")
(add-to-list 'doom-ci-commit-scopes "docs")
(add-to-list 'doom-ci-commit-scopes #'ci-check-snippet-scope))


;;; Helpers
(defun ci-check-snippet-scope (scope &rest _)
"Permit mode SCOPE if a directory for it exists."
(file-directory-p (file-name-concat (dir!) (format "%s-mode" scope))))

;;; .doomrc ends here

0 comments on commit f957f8d

Please sign in to comment.