forked from org-roam/org-roam
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
756f621
commit aee3467
Showing
49 changed files
with
4,496 additions
and
7,085 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,13 @@ | ||
;;; Directory Local Variables | ||
;;; For more information see (info "(emacs) Directory Variables") | ||
|
||
((emacs-lisp-mode | ||
(eval . (require 'org-roam-dev)) | ||
(eval . (org-roam-dev-mode)))) | ||
(fill-column . 110) | ||
(indent-tabs-mode . nil) | ||
(elisp-lint-ignored-validators . ("byte-compile" "package-lint")) | ||
(elisp-lint-indent-specs . ((describe . 1) | ||
(it . 1) | ||
(org-element-map . defun) | ||
(org-roam-with-temp-buffer . 1) | ||
(org-with-point-at . 1) | ||
(magit-insert-section . defun) | ||
(magit-section-case . 0) | ||
(->> . 1) | ||
(org-roam-with-file . 2))))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,3 +13,4 @@ | |
/doc/stats/ | ||
/config.mk | ||
/doc/manual.html | ||
/.eldev/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
; -*- mode: emacs-lisp; lexical-binding: t; no-byte-compile: t -*- | ||
|
||
;; explicitly set main file | ||
(setf eldev-project-main-file "org-roam.el") | ||
|
||
(eldev-use-package-archive 'gnu) | ||
(eldev-use-package-archive 'melpa-unstable) | ||
|
||
;; allow to load test helpers | ||
(eldev-add-loading-roots 'test "test/utils") | ||
|
||
;; Tell checkdoc not to demand two spaces after a period. | ||
(setq sentence-end-double-space nil) | ||
|
||
(setf eldev-lint-default '(elisp)) | ||
(setf eldev-standard-excludes `(:or ,eldev-standard-excludes "org-roam-macs.el")) | ||
|
||
(with-eval-after-load 'elisp-lint | ||
;; We will byte-compile with Eldev. | ||
(setf elisp-lint-ignored-validators '("package-lint" "fill-column") | ||
enable-local-variables :all)) | ||
|
||
;; Teach linter how to properly indent emacsql vectors | ||
(eldev-add-extra-dependencies 'lint 'emacsql) | ||
(add-hook 'eldev-lint-hook | ||
(lambda () | ||
(eldev-load-project-dependencies 'lint nil t) | ||
(require 'emacsql) | ||
(call-interactively #'emacsql-fix-vector-indentation))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,70 +1,29 @@ | ||
# * makem.sh/Makefile --- Script to aid building and testing Emacs Lisp packages | ||
.PHONY: clean | ||
clean: | ||
eldev clean all | ||
|
||
# This Makefile is from the makem.sh repo: <https://github.com/alphapapa/makem.sh>. | ||
.PHONY: prepare | ||
prepare: | ||
eldev -C --unstable -p -dtT prepare | ||
|
||
# * Arguments | ||
.PHONY: lint | ||
lint: | ||
eldev -C --unstable -T lint | ||
|
||
# For consistency, we use only var=val options, not hyphen-prefixed options. | ||
|
||
# NOTE: I don't like duplicating the arguments here and in makem.sh, | ||
# but I haven't been able to find a way to pass arguments which | ||
# conflict with Make's own arguments through Make to the script. | ||
# Using -- doesn't seem to do it. | ||
|
||
ifdef install-deps | ||
INSTALL_DEPS = "--install-deps" | ||
endif | ||
ifdef install-linters | ||
INSTALL_LINTERS = "--install-linters" | ||
endif | ||
|
||
ifdef sandbox | ||
ifeq ($(sandbox), t) | ||
SANDBOX = --sandbox | ||
else | ||
SANDBOX = --sandbox $(sandbox) | ||
endif | ||
endif | ||
|
||
ifdef debug | ||
DEBUG = "--debug" | ||
endif | ||
|
||
# ** Verbosity | ||
|
||
# Since the "-v" in "make -v" gets intercepted by Make itself, we have | ||
# to use a variable. | ||
|
||
verbose = $(v) | ||
|
||
ifneq (,$(findstring vv,$(verbose))) | ||
VERBOSE = "-vv" | ||
else ifneq (,$(findstring v,$(verbose))) | ||
VERBOSE = "-v" | ||
endif | ||
|
||
# * Rules | ||
|
||
# TODO: Handle cases in which "test" or "tests" are called and a | ||
# directory by that name exists, which can confuse Make. | ||
|
||
%: | ||
@./makem.sh $(DEBUG) $(VERBOSE) $(SANDBOX) $(INSTALL_DEPS) $(INSTALL_LINTERS) $(@) | ||
|
||
.DEFAULT: init | ||
init: | ||
@./makem.sh $(DEBUG) $(VERBOSE) $(SANDBOX) $(INSTALL_DEPS) $(INSTALL_LINTERS) | ||
.PHONY: test | ||
test: | ||
eldev -C --unstable -T test | ||
|
||
docs: | ||
@$(MAKE) -C doc all | ||
make -C doc all | ||
|
||
html: | ||
@$(MAKE) -C doc html-dir | ||
make -C doc html-dir | ||
|
||
install: install-docs | ||
|
||
install-docs: docs | ||
@$(MAKE) -C doc install-docs | ||
make -C doc install-docs | ||
|
||
install-info: info | ||
@$(MAKE) -C doc install-info | ||
make -C doc install-info |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.