Debian Codegraph @

Eldev

raw
1 ; -*- mode: emacs-lisp; lexical-binding: t -*-
2 ;; this and related files adapted from org-roam
3 ;; explicitly set main file
4 (setf eldev-project-main-file "citar.el")
5
6 (eldev-use-package-archive 'gnu-elpa)
7 (eldev-use-package-archive 'melpa)
8
9 (eldev-use-plugin 'autoloads)
10
11 ;; TODO what to do with these excluded files?
12 (setf eldev-standard-excludes `(:or ,eldev-standard-excludes "./test/manual/" "./citar-capf.el" "./citar-filenotify.el"))
13
14 ;; (setf eldev-test-fileset '("./test/" "!./test/manual/"))
15 (eldev-add-extra-dependencies '(build test lint) 'embark 'auctex)
16
17 ;; allow to load test helpers
18 ;; (eldev-add-loading-roots 'test "test/utils")
19
20 ;;; Linting settings
21
22 ;; Tell checkdoc not to demand two spaces after a period.
23 (setq sentence-end-double-space nil)
24 (setq eldev-lint-default '(elisp))
25 (setq eldev-lint-stop-mode 'linter)
26
27 (with-eval-after-load 'elisp-lint
28 ;; Used eldev lint package | checkdoc
29 (setf elisp-lint-ignored-validators '("package-lint" "checkdoc")
30 enable-local-variables :all)
31 ;; Emacs 29 snapshot has new indentation convention for cl-letf
32 (when (> emacs-major-version 28)
33 (push "indent" elisp-lint-ignored-validators)))
34
35 ;; Currently, package-lint has no other way of ignoring checks.
36 ;; See https://github.com/purcell/package-lint/issues/125
37 (advice-add #'package-lint--check-eval-after-load :override #'ignore)