Compare commits
12 commits
b26c3c8899
...
67159d71e5
Author | SHA1 | Date | |
---|---|---|---|
67159d71e5 | |||
4a8c54f922 | |||
7e5e8c1ce4 | |||
2268dfc27a | |||
817060db2c | |||
83a70abae3 | |||
966af9fb99 | |||
ae2928e39f | |||
e8ac8c4687 | |||
434a811056 | |||
df67fdad8b | |||
020f19fcbc |
32 changed files with 809 additions and 177 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,5 +1,6 @@
|
||||||
/*/.cask/
|
/*/.cask/
|
||||||
/*/bin/
|
/*/bin/
|
||||||
/*/dist/
|
/*/dist/
|
||||||
|
/*/.eldev/
|
||||||
|
|
||||||
generated-config.yml*
|
generated-config.yml*
|
||||||
|
|
565
GNUmakefile
565
GNUmakefile
|
@ -1,6 +1,37 @@
|
||||||
FILES := $(wildcard oni-*.el)
|
define GUILE_MODULE
|
||||||
|
(use-modules (ice-9 rdelim)
|
||||||
|
(ice-9 ports)
|
||||||
|
(ice-9 regex))
|
||||||
|
|
||||||
PACKAGE_TARGETS := $(addprefix package-,$(FILES))
|
(define (convert-version version)
|
||||||
|
(string-join (map (compose number->string string->number) (string-split version #\.)) "."))
|
||||||
|
|
||||||
|
(define (get-multifile-module-version module-name)
|
||||||
|
(call-with-input-file (format #f "~a/~a.el" module-name module-name)
|
||||||
|
(lambda (p)
|
||||||
|
(let loop ((line (read-line p)))
|
||||||
|
(if (eof-object? line)
|
||||||
|
"Not found!"
|
||||||
|
(let ((m (string-match "^;; Version: (.*)" line)))
|
||||||
|
(if m
|
||||||
|
(format #f "~a-~a.tar" module-name
|
||||||
|
(convert-version (match:substring m 1)))
|
||||||
|
(loop (read-line p)))))))))
|
||||||
|
|
||||||
|
(define (get-module-version module-name)
|
||||||
|
(call-with-input-file (format #f "~a.el" module-name)
|
||||||
|
(lambda (p)
|
||||||
|
(let loop ((line (read-line p)))
|
||||||
|
(if (eof-object? line)
|
||||||
|
"Not found!"
|
||||||
|
(let ((m (string-match "^;; Version: (.*)" line)))
|
||||||
|
(if m
|
||||||
|
(format #f "~a-~a.el" module-name
|
||||||
|
(convert-version (match:substring m 1)))
|
||||||
|
(loop (read-line p)))))))))
|
||||||
|
endef
|
||||||
|
|
||||||
|
$(guile GUILE_MODULE))
|
||||||
|
|
||||||
define upload =
|
define upload =
|
||||||
emacs --quick --batch \
|
emacs --quick --batch \
|
||||||
|
@ -14,55 +45,95 @@ endef
|
||||||
|
|
||||||
define upload-multi-file =
|
define upload-multi-file =
|
||||||
$(call upload,(car (sort (file-expand-wildcards \"$1/dist/*.tar\") #'string>)))
|
$(call upload,(car (sort (file-expand-wildcards \"$1/dist/*.tar\") #'string>)))
|
||||||
cp $1/dist/$1-readme.txt bin/
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
package: $(PACKAGE_TARGETS) package-oni-conf package-oni-css package-oni-elisp \
|
package: \
|
||||||
package-oni-haml package-oni-html package-oni-nxml package-oni-org \
|
bin/$(guile (get-module-version "oni-alert")) \
|
||||||
package-oni-php package-oni-python package-oni-ruby package-oni-twig \
|
bin/$(guile (get-module-version "oni-autohotkey")) \
|
||||||
package-oni-csharp package-oni-bats
|
bin/$(guile (get-module-version "oni-bat")) \
|
||||||
|
bin/$(guile (get-multifile-module-version "oni-bats")) \
|
||||||
package-%: %
|
bin/$(guile (get-module-version "oni-bookmark")) \
|
||||||
$(call upload,\"$^\")
|
bin/$(guile (get-module-version "oni-browse-url")) \
|
||||||
|
bin/$(guile (get-module-version "oni-c")) \
|
||||||
package-oni-bats:
|
bin/$(guile (get-module-version "oni-circe")) \
|
||||||
$(call upload-multi-file,oni-bats)
|
bin/$(guile (get-module-version "oni-clojure")) \
|
||||||
|
bin/$(guile (get-module-version "oni-cmake")) \
|
||||||
package-oni-conf:
|
bin/$(guile (get-module-version "oni-common-lisp")) \
|
||||||
$(call upload-multi-file,oni-conf)
|
bin/$(guile (get-module-version "oni-company")) \
|
||||||
|
bin/$(guile (get-module-version "oni-compilation")) \
|
||||||
package-oni-css:
|
bin/$(guile (get-multifile-module-version "oni-conf")) \
|
||||||
$(call upload-multi-file,oni-css)
|
bin/$(guile (get-module-version "oni-core")) \
|
||||||
|
bin/$(guile (get-module-version "oni-counsel")) \
|
||||||
package-oni-elisp:
|
bin/$(guile (get-module-version "oni-cpp")) \
|
||||||
$(call upload-multi-file,oni-elisp)
|
bin/$(guile (get-multifile-module-version "oni-csharp")) \
|
||||||
|
bin/$(guile (get-multifile-module-version "oni-css")) \
|
||||||
package-oni-haml:
|
bin/$(guile (get-module-version "oni-data-dir")) \
|
||||||
$(call upload-multi-file,oni-haml)
|
bin/$(guile (get-module-version "oni-diff-hl")) \
|
||||||
|
bin/$(guile (get-module-version "oni-dired")) \
|
||||||
package-oni-html:
|
bin/$(guile (get-module-version "oni-docker")) \
|
||||||
$(call upload-multi-file,oni-html)
|
bin/$(guile (get-module-version "oni-ediff")) \
|
||||||
|
bin/$(guile (get-module-version "oni-elfeed")) \
|
||||||
package-oni-nxml:
|
bin/$(guile (get-multifile-module-version "oni-elisp")) \
|
||||||
$(call upload-multi-file,oni-nxml)
|
bin/$(guile (get-module-version "oni-elm")) \
|
||||||
|
bin/$(guile (get-module-version "oni-embrace")) \
|
||||||
package-oni-org:
|
bin/$(guile (get-module-version "oni-emms")) \
|
||||||
$(call upload-multi-file,oni-org)
|
bin/$(guile (get-module-version "oni-epub")) \
|
||||||
|
bin/$(guile (get-module-version "oni-eshell")) \
|
||||||
package-oni-php:
|
bin/$(guile (get-module-version "oni-eww")) \
|
||||||
$(call upload-multi-file,oni-php)
|
bin/$(guile (get-module-version "oni-fish")) \
|
||||||
|
bin/$(guile (get-module-version "oni-flycheck")) \
|
||||||
package-oni-python:
|
bin/$(guile (get-module-version "oni-git-commit")) \
|
||||||
$(call upload-multi-file,oni-python)
|
bin/$(guile (get-module-version "oni-gnus")) \
|
||||||
|
bin/$(guile (get-module-version "oni-grep")) \
|
||||||
package-oni-ruby:
|
bin/$(guile (get-module-version "oni-groovy")) \
|
||||||
$(call upload-multi-file,oni-ruby)
|
bin/$(guile (get-module-version "oni-gui")) \
|
||||||
|
bin/$(guile (get-multifile-module-version "oni-haml")) \
|
||||||
package-oni-twig:
|
bin/$(guile (get-module-version "oni-haskell")) \
|
||||||
$(call upload-multi-file,oni-twig)
|
bin/$(guile (get-module-version "oni-highlight-indent-guides")) \
|
||||||
|
bin/$(guile (get-multifile-module-version "oni-html")) \
|
||||||
package-oni-csharp:
|
bin/$(guile (get-module-version "oni-hydra")) \
|
||||||
$(call upload-multi-file,oni-csharp)
|
bin/$(guile (get-module-version "oni-ivy")) \
|
||||||
|
bin/$(guile (get-module-version "oni-jabber")) \
|
||||||
|
bin/$(guile (get-module-version "oni-java")) \
|
||||||
|
bin/$(guile (get-module-version "oni-js")) \
|
||||||
|
bin/$(guile (get-module-version "oni-json")) \
|
||||||
|
bin/$(guile (get-module-version "oni-log-edit")) \
|
||||||
|
bin/$(guile (get-module-version "oni-lsp")) \
|
||||||
|
bin/$(guile (get-module-version "oni-lua")) \
|
||||||
|
bin/$(guile (get-module-version "oni-lui")) \
|
||||||
|
bin/$(guile (get-module-version "oni-magit")) \
|
||||||
|
bin/$(guile (get-module-version "oni-makefile")) \
|
||||||
|
bin/$(guile (get-module-version "oni-notmuch")) \
|
||||||
|
bin/$(guile (get-multifile-module-version "oni-nxml")) \
|
||||||
|
bin/$(guile (get-multifile-module-version "oni-org")) \
|
||||||
|
bin/$(guile (get-module-version "oni-org-roam")) \
|
||||||
|
bin/$(guile (get-module-version "oni-package")) \
|
||||||
|
bin/$(guile (get-module-version "oni-paredit")) \
|
||||||
|
bin/$(guile (get-multifile-module-version "oni-php")) \
|
||||||
|
bin/$(guile (get-module-version "oni-powershell")) \
|
||||||
|
bin/$(guile (get-module-version "oni-prescient")) \
|
||||||
|
bin/$(guile (get-module-version "oni-projectile")) \
|
||||||
|
bin/$(guile (get-multifile-module-version "oni-python")) \
|
||||||
|
bin/$(guile (get-multifile-module-version "oni-ruby")) \
|
||||||
|
bin/$(guile (get-module-version "oni-rust")) \
|
||||||
|
bin/$(guile (get-module-version "oni-scheme")) \
|
||||||
|
bin/$(guile (get-module-version "oni-shackle")) \
|
||||||
|
bin/$(guile (get-module-version "oni-sh")) \
|
||||||
|
bin/$(guile (get-module-version "oni-shr")) \
|
||||||
|
bin/$(guile (get-module-version "oni-slack")) \
|
||||||
|
bin/$(guile (get-module-version "oni-smartparens")) \
|
||||||
|
bin/$(guile (get-module-version "oni-smt")) \
|
||||||
|
bin/$(guile (get-module-version "oni-sort")) \
|
||||||
|
bin/$(guile (get-module-version "oni-termux")) \
|
||||||
|
bin/$(guile (get-module-version "oni-tramp")) \
|
||||||
|
bin/$(guile (get-module-version "oni-tui")) \
|
||||||
|
bin/$(guile (get-multifile-module-version "oni-twig")) \
|
||||||
|
bin/$(guile (get-module-version "oni-ui")) \
|
||||||
|
bin/$(guile (get-module-version "oni-vc")) \
|
||||||
|
bin/$(guile (get-module-version "oni-vterm")) \
|
||||||
|
bin/$(guile (get-module-version "oni-web")) \
|
||||||
|
bin/$(guile (get-module-version "oni-yaml")) \
|
||||||
|
bin/$(guile (get-module-version "oni-yasnippet")) \
|
||||||
|
|
||||||
install-%:
|
install-%:
|
||||||
emacs --batch \
|
emacs --batch \
|
||||||
|
@ -84,5 +155,397 @@ unit-test-%: install-%
|
||||||
integration-test-%: install-%
|
integration-test-%: install-%
|
||||||
bats test/integration/$*.bats
|
bats test/integration/$*.bats
|
||||||
|
|
||||||
clean:
|
## Single-file packages
|
||||||
rm -fv $(FILES)
|
|
||||||
|
bin/$(guile (get-module-version "oni-yasnippet")): oni-yasnippet.el
|
||||||
|
$(call upload,\"$<\")
|
||||||
|
|
||||||
|
bin/$(guile (get-module-version "oni-smartparens")): oni-smartparens.el
|
||||||
|
$(call upload,\"$<\")
|
||||||
|
|
||||||
|
bin/$(guile (get-module-version "oni-flycheck")): oni-flycheck.el
|
||||||
|
$(call upload,\"$<\")
|
||||||
|
|
||||||
|
bin/$(guile (get-module-version "oni-sh")): oni-sh.el \
|
||||||
|
bin/$(guile (get-module-version "oni-smartparens")) \
|
||||||
|
bin/$(guile (get-module-version "oni-flycheck"))
|
||||||
|
$(call upload,\"$<\")
|
||||||
|
|
||||||
|
bin/$(guile (get-module-version "oni-company")): oni-company.el \
|
||||||
|
bin/$(guile (get-module-version "oni-prescient"))
|
||||||
|
$(call upload,\"$<\")
|
||||||
|
|
||||||
|
bin/$(guile (get-module-version "oni-compilation")): oni-compilation.el
|
||||||
|
$(call upload,\"$<\")
|
||||||
|
|
||||||
|
bin/$(guile (get-module-version "oni-core")): oni-core.el
|
||||||
|
$(call upload,\"$<\")
|
||||||
|
|
||||||
|
bin/$(guile (get-module-version "oni-counsel")): oni-counsel.el
|
||||||
|
$(call upload,\"$<\")
|
||||||
|
|
||||||
|
bin/$(guile (get-module-version "oni-cpp")): oni-cpp.el
|
||||||
|
$(call upload,\"$<\")
|
||||||
|
|
||||||
|
bin/$(guile (get-module-version "oni-prescient")): oni-prescient.el \
|
||||||
|
bin/$(guile (get-module-version "oni-data-dir"))
|
||||||
|
$(call upload,\"$<\")
|
||||||
|
|
||||||
|
bin/$(guile (get-module-version "oni-data-dir")): oni-data-dir.el
|
||||||
|
$(call upload,\"$<\")
|
||||||
|
|
||||||
|
bin/$(guile (get-module-version "oni-diff-hl")): oni-diff-hl.el
|
||||||
|
$(call upload,\"$<\")
|
||||||
|
|
||||||
|
bin/$(guile (get-module-version "oni-dired")): oni-dired.el
|
||||||
|
$(call upload,\"$<\")
|
||||||
|
|
||||||
|
bin/$(guile (get-module-version "oni-docker")): oni-docker.el
|
||||||
|
$(call upload,\"$<\")
|
||||||
|
|
||||||
|
bin/$(guile (get-module-version "oni-ediff")): oni-ediff.el
|
||||||
|
$(call upload,\"$<\")
|
||||||
|
|
||||||
|
bin/$(guile (get-module-version "oni-elfeed")): oni-elfeed.el
|
||||||
|
$(call upload,\"$<\")
|
||||||
|
|
||||||
|
bin/$(guile (get-module-version "oni-elm")): oni-elm.el
|
||||||
|
$(call upload,\"$<\")
|
||||||
|
|
||||||
|
bin/$(guile (get-module-version "oni-embrace")): oni-embrace.el
|
||||||
|
$(call upload,\"$<\")
|
||||||
|
|
||||||
|
bin/$(guile (get-module-version "oni-emms")): oni-emms.el
|
||||||
|
$(call upload,\"$<\")
|
||||||
|
|
||||||
|
bin/$(guile (get-module-version "oni-epub")): oni-epub.el
|
||||||
|
$(call upload,\"$<\")
|
||||||
|
|
||||||
|
bin/$(guile (get-module-version "oni-eshell")): oni-eshell.el
|
||||||
|
$(call upload,\"$<\")
|
||||||
|
|
||||||
|
bin/$(guile (get-module-version "oni-eww")): oni-eww.el
|
||||||
|
$(call upload,\"$<\")
|
||||||
|
|
||||||
|
bin/$(guile (get-module-version "oni-fish")): oni-fish.el
|
||||||
|
$(call upload,\"$<\")
|
||||||
|
|
||||||
|
bin/$(guile (get-module-version "oni-git-commit")): oni-git-commit.el
|
||||||
|
$(call upload,\"$<\")
|
||||||
|
|
||||||
|
bin/$(guile (get-module-version "oni-gnus")): oni-gnus.el
|
||||||
|
$(call upload,\"$<\")
|
||||||
|
|
||||||
|
bin/$(guile (get-module-version "oni-grep")): oni-grep.el
|
||||||
|
$(call upload,\"$<\")
|
||||||
|
|
||||||
|
bin/$(guile (get-module-version "oni-groovy")): oni-groovy.el
|
||||||
|
$(call upload,\"$<\")
|
||||||
|
|
||||||
|
bin/$(guile (get-module-version "oni-gui")): oni-gui.el
|
||||||
|
$(call upload,\"$<\")
|
||||||
|
|
||||||
|
bin/$(guile (get-module-version "oni-haskell")): oni-haskell.el
|
||||||
|
$(call upload,\"$<\")
|
||||||
|
|
||||||
|
bin/$(guile (get-module-version "oni-highlight-indent-guides")): oni-highlight-indent-guides.el
|
||||||
|
$(call upload,\"$<\")
|
||||||
|
|
||||||
|
bin/$(guile (get-module-version "oni-hydra")): oni-hydra.el
|
||||||
|
$(call upload,\"$<\")
|
||||||
|
|
||||||
|
bin/$(guile (get-module-version "oni-ivy")): oni-ivy.el
|
||||||
|
$(call upload,\"$<\")
|
||||||
|
|
||||||
|
bin/$(guile (get-module-version "oni-jabber")): oni-jabber.el
|
||||||
|
$(call upload,\"$<\")
|
||||||
|
|
||||||
|
bin/$(guile (get-module-version "oni-java")): oni-java.el
|
||||||
|
$(call upload,\"$<\")
|
||||||
|
|
||||||
|
bin/$(guile (get-module-version "oni-js")): oni-js.el
|
||||||
|
$(call upload,\"$<\")
|
||||||
|
|
||||||
|
bin/$(guile (get-module-version "oni-json")): oni-json.el
|
||||||
|
$(call upload,\"$<\")
|
||||||
|
|
||||||
|
bin/$(guile (get-module-version "oni-log-edit")): oni-log-edit.el
|
||||||
|
$(call upload,\"$<\")
|
||||||
|
|
||||||
|
bin/$(guile (get-module-version "oni-lsp")): oni-lsp.el
|
||||||
|
$(call upload,\"$<\")
|
||||||
|
|
||||||
|
bin/$(guile (get-module-version "oni-lua")): oni-lua.el
|
||||||
|
$(call upload,\"$<\")
|
||||||
|
|
||||||
|
bin/$(guile (get-module-version "oni-lui")): oni-lui.el
|
||||||
|
$(call upload,\"$<\")
|
||||||
|
|
||||||
|
bin/$(guile (get-module-version "oni-magit")): oni-magit.el
|
||||||
|
$(call upload,\"$<\")
|
||||||
|
|
||||||
|
bin/$(guile (get-module-version "oni-makefile")): oni-makefile.el
|
||||||
|
$(call upload,\"$<\")
|
||||||
|
|
||||||
|
bin/$(guile (get-module-version "oni-markdown")): oni-markdown.el
|
||||||
|
$(call upload,\"$<\")
|
||||||
|
|
||||||
|
bin/$(guile (get-module-version "oni-notmuch")): oni-notmuch.el
|
||||||
|
$(call upload,\"$<\")
|
||||||
|
|
||||||
|
bin/$(guile (get-module-version "oni-org-roam")): oni-org-roam.el
|
||||||
|
$(call upload,\"$<\")
|
||||||
|
|
||||||
|
bin/$(guile (get-module-version "oni-package")): oni-package.el
|
||||||
|
$(call upload,\"$<\")
|
||||||
|
|
||||||
|
bin/$(guile (get-module-version "oni-paredit")): oni-paredit.el
|
||||||
|
$(call upload,\"$<\")
|
||||||
|
|
||||||
|
bin/$(guile (get-module-version "oni-powershell")): oni-powershell.el
|
||||||
|
$(call upload,\"$<\")
|
||||||
|
|
||||||
|
bin/$(guile (get-module-version "oni-projectile")): oni-projectile.el
|
||||||
|
$(call upload,\"$<\")
|
||||||
|
|
||||||
|
bin/$(guile (get-module-version "oni-rust")): oni-rust.el
|
||||||
|
$(call upload,\"$<\")
|
||||||
|
|
||||||
|
bin/$(guile (get-module-version "oni-scheme")): oni-scheme.el
|
||||||
|
$(call upload,\"$<\")
|
||||||
|
|
||||||
|
bin/$(guile (get-module-version "oni-shackle")): oni-shackle.el
|
||||||
|
$(call upload,\"$<\")
|
||||||
|
|
||||||
|
bin/$(guile (get-module-version "oni-shr")): oni-shr.el
|
||||||
|
$(call upload,\"$<\")
|
||||||
|
|
||||||
|
bin/$(guile (get-module-version "oni-slack")): oni-slack.el
|
||||||
|
$(call upload,\"$<\")
|
||||||
|
|
||||||
|
bin/$(guile (get-module-version "oni-smt")): oni-smt.el
|
||||||
|
$(call upload,\"$<\")
|
||||||
|
|
||||||
|
bin/$(guile (get-module-version "oni-sort")): oni-sort.el
|
||||||
|
$(call upload,\"$<\")
|
||||||
|
|
||||||
|
bin/$(guile (get-module-version "oni-termux")): oni-termux.el
|
||||||
|
$(call upload,\"$<\")
|
||||||
|
|
||||||
|
bin/$(guile (get-module-version "oni-tramp")): oni-tramp.el
|
||||||
|
$(call upload,\"$<\")
|
||||||
|
|
||||||
|
bin/$(guile (get-module-version "oni-tui")): oni-tui.el
|
||||||
|
$(call upload,\"$<\")
|
||||||
|
|
||||||
|
bin/$(guile (get-module-version "oni-ui")): oni-ui.el
|
||||||
|
$(call upload,\"$<\")
|
||||||
|
|
||||||
|
bin/$(guile (get-module-version "oni-vc")): oni-vc.el
|
||||||
|
$(call upload,\"$<\")
|
||||||
|
|
||||||
|
bin/$(guile (get-module-version "oni-vterm")): oni-vterm.el
|
||||||
|
$(call upload,\"$<\")
|
||||||
|
|
||||||
|
bin/$(guile (get-module-version "oni-web")): oni-web.el
|
||||||
|
$(call upload,\"$<\")
|
||||||
|
|
||||||
|
bin/$(guile (get-module-version "oni-yaml")): oni-yaml.el
|
||||||
|
$(call upload,\"$<\")
|
||||||
|
|
||||||
|
bin/$(guile (get-module-version "oni-alert")): oni-alert.el
|
||||||
|
$(call upload,\"$<\")
|
||||||
|
|
||||||
|
bin/$(guile (get-module-version "oni-autohotkey")): oni-autohotkey.el
|
||||||
|
$(call upload,\"$<\")
|
||||||
|
|
||||||
|
bin/$(guile (get-module-version "oni-bat")): oni-bat.el
|
||||||
|
$(call upload,\"$<\")
|
||||||
|
|
||||||
|
bin/$(guile (get-module-version "oni-bookmark")): oni-bookmark.el
|
||||||
|
$(call upload,\"$<\")
|
||||||
|
|
||||||
|
bin/$(guile (get-module-version "oni-browse-url")): oni-browse-url.el
|
||||||
|
$(call upload,\"$<\")
|
||||||
|
|
||||||
|
bin/$(guile (get-module-version "oni-c")): oni-c.el
|
||||||
|
$(call upload,\"$<\")
|
||||||
|
|
||||||
|
bin/$(guile (get-module-version "oni-circe")): oni-circe.el
|
||||||
|
$(call upload,\"$<\")
|
||||||
|
|
||||||
|
bin/$(guile (get-module-version "oni-clojure")): oni-clojure.el
|
||||||
|
$(call upload,\"$<\")
|
||||||
|
|
||||||
|
bin/$(guile (get-module-version "oni-cmake")): oni-cmake.el
|
||||||
|
$(call upload,\"$<\")
|
||||||
|
|
||||||
|
bin/$(guile (get-module-version "oni-common-lisp")): oni-common-lisp.el
|
||||||
|
$(call upload,\"$<\")
|
||||||
|
|
||||||
|
## oni-bats
|
||||||
|
|
||||||
|
oni-bats/dist/$(guile (get-multifile-module-version "oni-bats")): \
|
||||||
|
oni-bats/oni-bats.el \
|
||||||
|
bin/$(guile (get-module-version "oni-yasnippet")) \
|
||||||
|
bin/$(guile (get-module-version "oni-sh"))
|
||||||
|
cd oni-bats && eldev package
|
||||||
|
|
||||||
|
bin/$(guile (get-multifile-module-version "oni-bats")): \
|
||||||
|
oni-bats/dist/$(guile (get-multifile-module-version "oni-bats"))
|
||||||
|
$(call upload-multi-file,oni-bats)
|
||||||
|
|
||||||
|
## oni-conf
|
||||||
|
|
||||||
|
oni-conf/dist/$(guile (get-multifile-module-version "oni-conf")): \
|
||||||
|
oni-conf/oni-conf.el \
|
||||||
|
bin/$(guile (get-module-version "oni-yasnippet"))
|
||||||
|
cd oni-conf && eldev package
|
||||||
|
|
||||||
|
bin/$(guile (get-multifile-module-version "oni-conf")): \
|
||||||
|
oni-conf/dist/$(guile (get-multifile-module-version "oni-conf"))
|
||||||
|
$(call upload-multi-file,oni-conf)
|
||||||
|
|
||||||
|
## oni-csharp
|
||||||
|
|
||||||
|
oni-csharp/dist/$(guile (get-multifile-module-version "oni-csharp")): \
|
||||||
|
oni-csharp/oni-csharp.el \
|
||||||
|
bin/$(guile (get-module-version "oni-company")) \
|
||||||
|
bin/$(guile (get-module-version "oni-flycheck")) \
|
||||||
|
bin/$(guile (get-module-version "oni-yasnippet")) \
|
||||||
|
bin/$(guile (get-module-version "oni-hydra")) \
|
||||||
|
bin/$(guile (get-module-version "oni-lsp")) \
|
||||||
|
bin/$(guile (get-module-version "oni-smartparens"))
|
||||||
|
cd oni-csharp && eldev package
|
||||||
|
|
||||||
|
bin/$(guile (get-multifile-module-version "oni-csharp")): \
|
||||||
|
oni-csharp/dist/$(guile (get-multifile-module-version "oni-csharp"))
|
||||||
|
$(call upload-multi-file,oni-csharp)
|
||||||
|
|
||||||
|
## oni-css
|
||||||
|
|
||||||
|
oni-css/dist/$(guile (get-multifile-module-version "oni-css")): \
|
||||||
|
oni-css/oni-css.el \
|
||||||
|
bin/$(guile (get-module-version "oni-company")) \
|
||||||
|
bin/$(guile (get-module-version "oni-yasnippet")) \
|
||||||
|
bin/$(guile (get-module-version "oni-hydra"))
|
||||||
|
cd oni-css && eldev package
|
||||||
|
|
||||||
|
bin/$(guile (get-multifile-module-version "oni-css")): \
|
||||||
|
oni-css/dist/$(guile (get-multifile-module-version "oni-css"))
|
||||||
|
$(call upload-multi-file,oni-css)
|
||||||
|
|
||||||
|
## oni-elisp
|
||||||
|
|
||||||
|
oni-elisp/dist/$(guile (get-multifile-module-version "oni-elisp")): \
|
||||||
|
oni-elisp/oni-elisp.el \
|
||||||
|
bin/$(guile (get-module-version "oni-company")) \
|
||||||
|
bin/$(guile (get-module-version "oni-flycheck")) \
|
||||||
|
bin/$(guile (get-module-version "oni-paredit")) \
|
||||||
|
bin/$(guile (get-module-version "oni-yasnippet")) \
|
||||||
|
bin/$(guile (get-module-version "oni-hydra"))
|
||||||
|
cd oni-elisp && eldev package
|
||||||
|
|
||||||
|
bin/$(guile (get-multifile-module-version "oni-elisp")): \
|
||||||
|
oni-elisp/dist/$(guile (get-multifile-module-version "oni-elisp"))
|
||||||
|
$(call upload-multi-file,oni-elisp)
|
||||||
|
|
||||||
|
## oni-haml
|
||||||
|
|
||||||
|
oni-haml/dist/$(guile (get-multifile-module-version "oni-haml")): \
|
||||||
|
oni-haml/oni-haml.el \
|
||||||
|
bin/$(guile (get-module-version "oni-yasnippet"))
|
||||||
|
cd oni-haml && eldev package
|
||||||
|
|
||||||
|
bin/$(guile (get-multifile-module-version "oni-haml")): \
|
||||||
|
oni-haml/dist/$(guile (get-multifile-module-version "oni-haml"))
|
||||||
|
$(call upload-multi-file,oni-haml)
|
||||||
|
|
||||||
|
## oni-html
|
||||||
|
|
||||||
|
oni-html/dist/$(guile (get-multifile-module-version "oni-html")): \
|
||||||
|
oni-html/oni-html.el \
|
||||||
|
bin/$(guile (get-module-version "oni-yasnippet"))
|
||||||
|
cd oni-html && eldev package
|
||||||
|
|
||||||
|
bin/$(guile (get-multifile-module-version "oni-html")): \
|
||||||
|
oni-html/dist/$(guile (get-multifile-module-version "oni-html"))
|
||||||
|
$(call upload-multi-file,oni-html)
|
||||||
|
|
||||||
|
## oni-nxml
|
||||||
|
|
||||||
|
oni-nxml/dist/$(guile (get-multifile-module-version "oni-nxml")): \
|
||||||
|
oni-nxml/oni-nxml.el \
|
||||||
|
bin/$(guile (get-module-version "oni-yasnippet"))
|
||||||
|
cd oni-nxml && eldev package
|
||||||
|
|
||||||
|
bin/$(guile (get-multifile-module-version "oni-nxml")): \
|
||||||
|
oni-nxml/dist/$(guile (get-multifile-module-version "oni-nxml"))
|
||||||
|
$(call upload-multi-file,oni-nxml)
|
||||||
|
|
||||||
|
## oni-org
|
||||||
|
|
||||||
|
oni-org/dist/$(guile (get-multifile-module-version "oni-org")): \
|
||||||
|
oni-org/oni-org.el \
|
||||||
|
bin/$(guile (get-module-version "oni-yasnippet")) \
|
||||||
|
bin/$(guile (get-module-version "oni-alert")) \
|
||||||
|
bin/$(guile (get-module-version "oni-hydra"))
|
||||||
|
cd oni-org && eldev package
|
||||||
|
|
||||||
|
bin/$(guile (get-multifile-module-version "oni-org")): \
|
||||||
|
oni-org/dist/$(guile (get-multifile-module-version "oni-org"))
|
||||||
|
$(call upload-multi-file,oni-org)
|
||||||
|
|
||||||
|
## oni-php
|
||||||
|
|
||||||
|
oni-php/dist/$(guile (get-multifile-module-version "oni-php")): \
|
||||||
|
oni-php/oni-php.el \
|
||||||
|
bin/$(guile (get-module-version "oni-yasnippet")) \
|
||||||
|
bin/$(guile (get-module-version "oni-flycheck")) \
|
||||||
|
bin/$(guile (get-module-version "oni-company")) \
|
||||||
|
bin/$(guile (get-module-version "oni-prescient")) \
|
||||||
|
bin/$(guile (get-module-version "oni-data-dir")) \
|
||||||
|
bin/$(guile (get-module-version "oni-hydra"))
|
||||||
|
cd oni-php && eldev package
|
||||||
|
|
||||||
|
bin/$(guile (get-multifile-module-version "oni-php")): \
|
||||||
|
oni-php/dist/$(guile (get-multifile-module-version "oni-php"))
|
||||||
|
$(call upload-multi-file,oni-php)
|
||||||
|
|
||||||
|
## oni-python
|
||||||
|
|
||||||
|
oni-python/dist/$(guile (get-multifile-module-version "oni-python")): \
|
||||||
|
oni-python/oni-python.el \
|
||||||
|
bin/$(guile (get-module-version "oni-yasnippet")) \
|
||||||
|
bin/$(guile (get-module-version "oni-company")) \
|
||||||
|
bin/$(guile (get-module-version "oni-flycheck")) \
|
||||||
|
bin/$(guile (get-module-version "oni-hydra")) \
|
||||||
|
bin/$(guile (get-module-version "oni-lsp"))
|
||||||
|
cd oni-python && eldev package
|
||||||
|
|
||||||
|
bin/$(guile (get-multifile-module-version "oni-python")): \
|
||||||
|
oni-python/dist/$(guile (get-multifile-module-version "oni-python"))
|
||||||
|
$(call upload-multi-file,oni-python)
|
||||||
|
|
||||||
|
## oni-ruby
|
||||||
|
|
||||||
|
oni-ruby/dist/$(guile (get-multifile-module-version "oni-ruby")): \
|
||||||
|
oni-ruby/oni-ruby.el \
|
||||||
|
bin/$(guile (get-module-version "oni-yasnippet"))
|
||||||
|
cd oni-ruby && eldev package
|
||||||
|
|
||||||
|
bin/$(guile (get-multifile-module-version "oni-ruby")): \
|
||||||
|
oni-ruby/dist/$(guile (get-multifile-module-version "oni-ruby"))
|
||||||
|
$(call upload-multi-file,oni-ruby)
|
||||||
|
|
||||||
|
## oni-twig
|
||||||
|
|
||||||
|
oni-twig/dist/$(guile (get-multifile-module-version "oni-twig")): \
|
||||||
|
oni-twig/oni-twig.el \
|
||||||
|
bin/$(guile (get-module-version "oni-yasnippet"))
|
||||||
|
cd oni-twig && eldev package
|
||||||
|
|
||||||
|
bin/$(guile (get-multifile-module-version "oni-twig")): \
|
||||||
|
oni-twig/dist/$(guile (get-multifile-module-version "oni-twig"))
|
||||||
|
$(call upload-multi-file,oni-twig)
|
||||||
|
|
||||||
|
|
|
@ -1,8 +0,0 @@
|
||||||
(source gnu)
|
|
||||||
(source melpa)
|
|
||||||
|
|
||||||
(package-file "./oni-bats.el")
|
|
||||||
|
|
||||||
(files
|
|
||||||
"*.el"
|
|
||||||
("snippets" "./snippets/*"))
|
|
13
oni-bats/Eldev
Normal file
13
oni-bats/Eldev
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
; -*- mode: emacs-lisp; lexical-binding: t -*-
|
||||||
|
|
||||||
|
;; Uncomment some calls below as needed for your project.
|
||||||
|
(eldev-use-package-archive 'gnu-elpa)
|
||||||
|
;(eldev-use-package-archive 'nongnu-elpa)
|
||||||
|
(eldev-use-package-archive 'melpa)
|
||||||
|
(eldev-use-package-archive `("oni" . ,(expand-file-name "../bin")))
|
||||||
|
|
||||||
|
(eldev-use-plugin 'autoloads)
|
||||||
|
|
||||||
|
(setf eldev-files-to-package
|
||||||
|
`(:or ,eldev-files-to-package
|
||||||
|
'("*.el" "./snippets/**/*")))
|
|
@ -1,8 +0,0 @@
|
||||||
(source gnu)
|
|
||||||
(source melpa)
|
|
||||||
|
|
||||||
(package-file "./oni-conf.el")
|
|
||||||
|
|
||||||
(files
|
|
||||||
"*.el"
|
|
||||||
("snippets" "./snippets/*"))
|
|
13
oni-conf/Eldev
Normal file
13
oni-conf/Eldev
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
; -*- mode: emacs-lisp; lexical-binding: t -*-
|
||||||
|
|
||||||
|
;; Uncomment some calls below as needed for your project.
|
||||||
|
(eldev-use-package-archive 'gnu-elpa)
|
||||||
|
;(eldev-use-package-archive 'nongnu-elpa)
|
||||||
|
(eldev-use-package-archive 'melpa)
|
||||||
|
(eldev-use-package-archive `("oni" . ,(expand-file-name "../bin")))
|
||||||
|
|
||||||
|
(eldev-use-plugin 'autoloads)
|
||||||
|
|
||||||
|
(setf eldev-files-to-package
|
||||||
|
`(:or ,eldev-files-to-package
|
||||||
|
'("*.el" "./snippets/**/*")))
|
30
oni-core.el
30
oni-core.el
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
;; Author: Tom Willemse <tom@ryuslash.org>
|
;; Author: Tom Willemse <tom@ryuslash.org>
|
||||||
;; Keywords: local
|
;; Keywords: local
|
||||||
;; Version: 2023.0416.003045
|
;; Version: 2023.0524.235720
|
||||||
;; Package-Requires: (oni-data-dir oni-embrace oni-hydra expand-region multiple-cursors gcmh diminish ws-butler which-key insert-char-preview mixed-pitch ace-window vertico marginalia orderless consult embark docstr mini-frame)
|
;; Package-Requires: (oni-data-dir oni-embrace oni-hydra expand-region multiple-cursors gcmh diminish ws-butler which-key insert-char-preview mixed-pitch ace-window vertico marginalia orderless consult embark docstr mini-frame)
|
||||||
|
|
||||||
;; This program is free software; you can redistribute it and/or modify
|
;; This program is free software; you can redistribute it and/or modify
|
||||||
|
@ -358,6 +358,11 @@ _s_: String list"
|
||||||
(backward-char)
|
(backward-char)
|
||||||
(looking-back (rx word) (1- (point)))))
|
(looking-back (rx word) (1- (point)))))
|
||||||
|
|
||||||
|
(defun oni-core-ace-window-select-other-window ()
|
||||||
|
"Use ‘ace-window’ to select which window is considered “other”."
|
||||||
|
(interactive)
|
||||||
|
(setq other-window-scroll-buffer (ace-select-window)))
|
||||||
|
|
||||||
(with-eval-after-load 'electric
|
(with-eval-after-load 'electric
|
||||||
(add-hook 'electric-quote-inhibit-functions #'oni-core-in-word-p))
|
(add-hook 'electric-quote-inhibit-functions #'oni-core-in-word-p))
|
||||||
|
|
||||||
|
@ -399,6 +404,7 @@ _s_: String list"
|
||||||
|
|
||||||
(global-set-key (kbd "C-c w d") '("Delete a window" . ace-delete-window))
|
(global-set-key (kbd "C-c w d") '("Delete a window" . ace-delete-window))
|
||||||
(global-set-key (kbd "C-c w k") '("Keep a single window" . ace-delete-other-windows))
|
(global-set-key (kbd "C-c w k") '("Keep a single window" . ace-delete-other-windows))
|
||||||
|
(global-set-key (kbd "C-c w o") '("Select other window" . oni-core-ace-window-select-other-window))
|
||||||
(global-set-key (kbd "M-g M") '("Jump to a mark anywhere" . consult-global-mark))
|
(global-set-key (kbd "M-g M") '("Jump to a mark anywhere" . consult-global-mark))
|
||||||
(global-set-key (kbd "M-g m") '("Jump to a mark" . consult-mark))
|
(global-set-key (kbd "M-g m") '("Jump to a mark" . consult-mark))
|
||||||
(global-set-key [remap bookmark-jump] 'consult-bookmark)
|
(global-set-key [remap bookmark-jump] 'consult-bookmark)
|
||||||
|
@ -409,6 +415,23 @@ _s_: String list"
|
||||||
(global-set-key [remap switch-to-buffer] 'consult-buffer)
|
(global-set-key [remap switch-to-buffer] 'consult-buffer)
|
||||||
(global-set-key [remap yank-pop] 'consult-yank-pop)
|
(global-set-key [remap yank-pop] 'consult-yank-pop)
|
||||||
|
|
||||||
|
(global-set-key (kbd "M-0") #'delete-window)
|
||||||
|
(global-set-key (kbd "C-x 0") (lambda () (interactive) (error "Use M-0 instead")))
|
||||||
|
(global-set-key (kbd "M-1") #'delete-other-windows)
|
||||||
|
(global-set-key (kbd "C-x 1") (lambda () (interactive) (error "Use M-1 instead")))
|
||||||
|
(global-set-key (kbd "M-2") #'split-window-below)
|
||||||
|
(global-set-key (kbd "C-x 2") (lambda () (interactive) (error "Use M-2 instead")))
|
||||||
|
(global-set-key (kbd "M-3") #'split-window-right)
|
||||||
|
(global-set-key (kbd "C-x 3") (lambda () (interactive) (error "Use M-3 instead")))
|
||||||
|
(global-set-key (kbd "M-4") #'ctl-x-4-prefix)
|
||||||
|
(global-set-key (kbd "C-x 4") (lambda () (interactive) (error "Use M-4 instead")))
|
||||||
|
(global-set-key (kbd "M-5") #'ctl-x-5-prefix)
|
||||||
|
(global-set-key (kbd "C-x 5") (lambda () (interactive) (error "Use M-5 instead")))
|
||||||
|
(global-set-key (kbd "M-6") #'2C-command)
|
||||||
|
(global-set-key (kbd "C-x 6") (lambda () (interactive) (error "Use M-6 instead")))
|
||||||
|
(global-set-key (kbd "M-8") (keymap-lookup global-map "C-x 8"))
|
||||||
|
(global-set-key (kbd "C-x 8") (lambda () (interactive) (error "Use M-8 instead")))
|
||||||
|
|
||||||
(defun oni-core-related-files ()
|
(defun oni-core-related-files ()
|
||||||
"Return a list of files related to the current buffer."
|
"Return a list of files related to the current buffer."
|
||||||
(let* ((jumpers related-files-jumpers)
|
(let* ((jumpers related-files-jumpers)
|
||||||
|
@ -427,11 +450,14 @@ _s_: String list"
|
||||||
:enabled buffer-file-name
|
:enabled buffer-file-name
|
||||||
:action find-file))
|
:action find-file))
|
||||||
|
|
||||||
|
(defun oni-core-remove-consult-buffer-preview ()
|
||||||
|
(consult-customize consult-buffer :preview-key nil))
|
||||||
|
|
||||||
(with-eval-after-load 'consult
|
(with-eval-after-load 'consult
|
||||||
(with-eval-after-load 'related-files
|
(with-eval-after-load 'related-files
|
||||||
(add-to-list 'consult-buffer-sources 'oni-core-related-places-source))
|
(add-to-list 'consult-buffer-sources 'oni-core-related-places-source))
|
||||||
|
|
||||||
(consult-customize consult-buffer :preview-key nil))
|
(oni-core-remove-consult-buffer-preview))
|
||||||
|
|
||||||
;;; Embark
|
;;; Embark
|
||||||
|
|
||||||
|
|
|
@ -1,8 +0,0 @@
|
||||||
(source gnu)
|
|
||||||
(source melpa)
|
|
||||||
|
|
||||||
(package-file "./oni-csharp.el")
|
|
||||||
|
|
||||||
(files
|
|
||||||
"*.el"
|
|
||||||
("snippets" "./snippets/*"))
|
|
13
oni-csharp/Eldev
Normal file
13
oni-csharp/Eldev
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
; -*- mode: emacs-lisp; lexical-binding: t -*-
|
||||||
|
|
||||||
|
;; Uncomment some calls below as needed for your project.
|
||||||
|
(eldev-use-package-archive 'gnu-elpa)
|
||||||
|
;(eldev-use-package-archive 'nongnu-elpa)
|
||||||
|
(eldev-use-package-archive 'melpa)
|
||||||
|
(eldev-use-package-archive `("oni" . ,(expand-file-name "../bin")))
|
||||||
|
|
||||||
|
(eldev-use-plugin 'autoloads)
|
||||||
|
|
||||||
|
(setf eldev-files-to-package
|
||||||
|
`(:or ,eldev-files-to-package
|
||||||
|
'("*.el" "./snippets/**/*")))
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
;; Author: Tom Willemse <tom@ryuslash.org>
|
;; Author: Tom Willemse <tom@ryuslash.org>
|
||||||
;; Keywords: local
|
;; Keywords: local
|
||||||
;; Version: 2022.0202.115001
|
;; Version: 2023.0525.001714
|
||||||
;; Package-Requires: (csharp-mode oni-company oni-flycheck oni-yasnippet oni-hydra oni-lsp oni-smartparens)
|
;; Package-Requires: (csharp-mode oni-company oni-flycheck oni-yasnippet oni-hydra oni-lsp oni-smartparens)
|
||||||
|
|
||||||
;; This program is free software; you can redistribute it and/or modify
|
;; This program is free software; you can redistribute it and/or modify
|
||||||
|
@ -186,24 +186,34 @@ _cs_: Solution
|
||||||
(interactive)
|
(interactive)
|
||||||
(save-excursion
|
(save-excursion
|
||||||
(goto-char (point-min))
|
(goto-char (point-min))
|
||||||
(remove-overlays (point-min) (point-max) 'oni-csharp--overlayp t)
|
|
||||||
(while (re-search-forward
|
(while (re-search-forward
|
||||||
(rx bol
|
(rx bol
|
||||||
(zero-or-more whitespace)
|
(zero-or-more whitespace)
|
||||||
"{"
|
(group
|
||||||
(group (minimal-match (one-or-more (or alphanumeric "-"))))
|
"{"
|
||||||
"} = {"
|
(group (minimal-match (one-or-more (or alphanumeric "-"))))
|
||||||
(group (minimal-match (one-or-more (or alphanumeric "-"))))
|
"}")
|
||||||
"}"
|
" = "
|
||||||
|
(group
|
||||||
|
"{"
|
||||||
|
(group (minimal-match (one-or-more (or alphanumeric "-"))))
|
||||||
|
"}")
|
||||||
eol)
|
eol)
|
||||||
nil
|
nil
|
||||||
:noerror)
|
:noerror)
|
||||||
(let ((current-overlay (make-overlay (line-beginning-position) (line-end-position))))
|
(add-text-properties
|
||||||
(overlay-put current-overlay 'after-string
|
(match-beginning 1) (match-end 1)
|
||||||
(propertize (format " => %s" (gethash (match-string 1) oni-csharp--projects))
|
(list 'display (gethash (match-string 2) oni-csharp--projects)
|
||||||
'face '(:foreground "#808080")))
|
'face 'font-lock-variable-name-face
|
||||||
(overlay-put current-overlay 'oni-csharp--overlayp t)
|
'help-echo (buffer-substring-no-properties
|
||||||
(overlay-put current-overlay 'evaporate t)))))
|
(match-beginning 1) (match-end 1))
|
||||||
|
'intangile nil))
|
||||||
|
(add-text-properties
|
||||||
|
(match-beginning 3) (match-end 3)
|
||||||
|
(list 'display (gethash (match-string 4) oni-csharp--projects)
|
||||||
|
'face 'font-lock-variable-name-face
|
||||||
|
'help-echo (buffer-substring-no-properties
|
||||||
|
(match-beginning 3) (match-end 3)))))))
|
||||||
|
|
||||||
(define-derived-mode csharp-solution-mode prog-mode "Sln"
|
(define-derived-mode csharp-solution-mode prog-mode "Sln"
|
||||||
"A major mode for viewing and editing C# ‘.sln’ files."
|
"A major mode for viewing and editing C# ‘.sln’ files."
|
||||||
|
@ -213,5 +223,37 @@ _cs_: Solution
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(add-to-list 'auto-mode-alist `(,(rx ".sln" eos) . csharp-solution-mode))
|
(add-to-list 'auto-mode-alist `(,(rx ".sln" eos) . csharp-solution-mode))
|
||||||
|
|
||||||
|
(defun oni-csharp-add-file-to-project ()
|
||||||
|
(interactive)
|
||||||
|
(let* ((file-name (buffer-file-name))
|
||||||
|
(project-dir (locate-dominating-file file-name
|
||||||
|
(lambda (file)
|
||||||
|
(if (file-directory-p file)
|
||||||
|
(directory-files file nil (rx ".csproj" eos))
|
||||||
|
(string-suffix-p ".csproj" file)))))
|
||||||
|
(project-files (directory-files project-dir nil (rx ".csproj" eos)))
|
||||||
|
(project-file (cl-case (length project-files)
|
||||||
|
(0 (error "No project files found in %s" project-dir))
|
||||||
|
(1 (car project-files))
|
||||||
|
(t (completing-read "Which project file? " project-files))))
|
||||||
|
(relative-file-name (file-relative-name file-name project-dir))
|
||||||
|
(project-file-absolute-path (expand-file-name project-file project-dir)))
|
||||||
|
(with-current-buffer (find-file-noselect project-file-absolute-path)
|
||||||
|
(save-excursion
|
||||||
|
(re-search-forward (rx "<Compile"))
|
||||||
|
(end-of-line)
|
||||||
|
(when (and buffer-file-read-only
|
||||||
|
(vc-registered project-file-absolute-path))
|
||||||
|
(vc-checkout project-file-absolute-path))
|
||||||
|
(insert "\n" "<Compile Include=\"" (string-replace "/" "\\" relative-file-name) "\" />")
|
||||||
|
(re-search-backward (rx "<ItemGroup>"))
|
||||||
|
(forward-line)
|
||||||
|
(let ((start (line-beginning-position)))
|
||||||
|
(re-search-forward (rx "</ItemGroup>"))
|
||||||
|
(forward-line -1)
|
||||||
|
(indent-region start (line-end-position))
|
||||||
|
(sort-lines nil start (line-end-position)))
|
||||||
|
(save-buffer)))))
|
||||||
|
|
||||||
(provide 'oni-csharp)
|
(provide 'oni-csharp)
|
||||||
;;; oni-csharp.el ends here
|
;;; oni-csharp.el ends here
|
||||||
|
|
|
@ -1,8 +0,0 @@
|
||||||
(source gnu)
|
|
||||||
(source melpa)
|
|
||||||
|
|
||||||
(package-file "./oni-css.el")
|
|
||||||
|
|
||||||
(files
|
|
||||||
"*.el"
|
|
||||||
("snippets" "./snippets/*"))
|
|
13
oni-css/Eldev
Normal file
13
oni-css/Eldev
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
; -*- mode: emacs-lisp; lexical-binding: t -*-
|
||||||
|
|
||||||
|
;; Uncomment some calls below as needed for your project.
|
||||||
|
(eldev-use-package-archive 'gnu-elpa)
|
||||||
|
;(eldev-use-package-archive 'nongnu-elpa)
|
||||||
|
(eldev-use-package-archive 'melpa)
|
||||||
|
(eldev-use-package-archive `("oni" . ,(expand-file-name "../bin")))
|
||||||
|
|
||||||
|
(eldev-use-plugin 'autoloads)
|
||||||
|
|
||||||
|
(setf eldev-files-to-package
|
||||||
|
`(:or ,eldev-files-to-package
|
||||||
|
'("*.el" "./snippets/**/*")))
|
|
@ -1,8 +0,0 @@
|
||||||
(source gnu)
|
|
||||||
(source melpa)
|
|
||||||
|
|
||||||
(package-file "./oni-elisp.el")
|
|
||||||
|
|
||||||
(files
|
|
||||||
"*.el"
|
|
||||||
("snippets" "./snippets/*"))
|
|
13
oni-elisp/Eldev
Normal file
13
oni-elisp/Eldev
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
; -*- mode: emacs-lisp; lexical-binding: t -*-
|
||||||
|
|
||||||
|
;; Uncomment some calls below as needed for your project.
|
||||||
|
(eldev-use-package-archive 'gnu-elpa)
|
||||||
|
;(eldev-use-package-archive 'nongnu-elpa)
|
||||||
|
(eldev-use-package-archive 'melpa)
|
||||||
|
(eldev-use-package-archive `("oni" . ,(expand-file-name "../bin")))
|
||||||
|
|
||||||
|
(eldev-use-plugin 'autoloads)
|
||||||
|
|
||||||
|
(setf eldev-files-to-package
|
||||||
|
`(:or ,eldev-files-to-package
|
||||||
|
'("*.el" "./snippets/**/*")))
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
;; Author: Tom Willemse <tom@ryuslash.org>
|
;; Author: Tom Willemse <tom@ryuslash.org>
|
||||||
;; Keywords: local
|
;; Keywords: local
|
||||||
;; Version: 2022.0926.132722
|
;; Version: 2023.0505.164419
|
||||||
;; Package-Requires: (groovy-mode oni-embrace oni-smartparens groovy-imports rainbow-delimiters jenkinsfile-mode)
|
;; Package-Requires: (groovy-mode oni-embrace oni-smartparens groovy-imports rainbow-delimiters jenkinsfile-mode)
|
||||||
|
|
||||||
;; This program is free software; you can redistribute it and/or modify
|
;; This program is free software; you can redistribute it and/or modify
|
||||||
|
@ -88,5 +88,13 @@
|
||||||
(with-eval-after-load 'grep
|
(with-eval-after-load 'grep
|
||||||
(add-to-list 'grep-files-aliases '("groovy" . "*.groovy *.pipeline Jenkinsfile")))
|
(add-to-list 'grep-files-aliases '("groovy" . "*.groovy *.pipeline Jenkinsfile")))
|
||||||
|
|
||||||
|
(setf (alist-get "Functions" groovy-imenu-regexp nil nil #'string=)
|
||||||
|
(list (rx line-start "def"
|
||||||
|
(minimal-match (one-or-more whitespace))
|
||||||
|
(group alpha (minimal-match (zero-or-more alphanumeric)))
|
||||||
|
(minimal-match (zero-or-more whitespace))
|
||||||
|
"(")
|
||||||
|
1))
|
||||||
|
|
||||||
(provide 'oni-groovy)
|
(provide 'oni-groovy)
|
||||||
;;; oni-groovy.el ends here
|
;;; oni-groovy.el ends here
|
||||||
|
|
|
@ -1,8 +0,0 @@
|
||||||
(source gnu)
|
|
||||||
(source melpa)
|
|
||||||
|
|
||||||
(package-file "./oni-haml.el")
|
|
||||||
|
|
||||||
(files
|
|
||||||
"*.el"
|
|
||||||
("snippets" "./snippets/*"))
|
|
13
oni-haml/Eldev
Normal file
13
oni-haml/Eldev
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
; -*- mode: emacs-lisp; lexical-binding: t -*-
|
||||||
|
|
||||||
|
;; Uncomment some calls below as needed for your project.
|
||||||
|
(eldev-use-package-archive 'gnu-elpa)
|
||||||
|
;(eldev-use-package-archive 'nongnu-elpa)
|
||||||
|
(eldev-use-package-archive 'melpa)
|
||||||
|
(eldev-use-package-archive `("oni" . ,(expand-file-name "../bin")))
|
||||||
|
|
||||||
|
(eldev-use-plugin 'autoloads)
|
||||||
|
|
||||||
|
(setf eldev-files-to-package
|
||||||
|
`(:or ,eldev-files-to-package
|
||||||
|
'("*.el" "./snippets/**/*")))
|
|
@ -1,8 +0,0 @@
|
||||||
(source gnu)
|
|
||||||
(source melpa)
|
|
||||||
|
|
||||||
(package-file "./oni-html.el")
|
|
||||||
|
|
||||||
(files
|
|
||||||
"*.el"
|
|
||||||
("snippets" "./snippets/*"))
|
|
13
oni-html/Eldev
Normal file
13
oni-html/Eldev
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
; -*- mode: emacs-lisp; lexical-binding: t -*-
|
||||||
|
|
||||||
|
;; Uncomment some calls below as needed for your project.
|
||||||
|
(eldev-use-package-archive 'gnu-elpa)
|
||||||
|
;(eldev-use-package-archive 'nongnu-elpa)
|
||||||
|
(eldev-use-package-archive 'melpa)
|
||||||
|
(eldev-use-package-archive `("oni" . ,(expand-file-name "../bin")))
|
||||||
|
|
||||||
|
(eldev-use-plugin 'autoloads)
|
||||||
|
|
||||||
|
(setf eldev-files-to-package
|
||||||
|
`(:or ,eldev-files-to-package
|
||||||
|
'("*.el" "./snippets/**/*")))
|
|
@ -1,8 +0,0 @@
|
||||||
(source gnu)
|
|
||||||
(source melpa)
|
|
||||||
|
|
||||||
(package-file "./oni-nxml.el")
|
|
||||||
|
|
||||||
(files
|
|
||||||
"*.el"
|
|
||||||
("snippets" "./snippets/*"))
|
|
13
oni-nxml/Eldev
Normal file
13
oni-nxml/Eldev
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
; -*- mode: emacs-lisp; lexical-binding: t -*-
|
||||||
|
|
||||||
|
;; Uncomment some calls below as needed for your project.
|
||||||
|
(eldev-use-package-archive 'gnu-elpa)
|
||||||
|
;(eldev-use-package-archive 'nongnu-elpa)
|
||||||
|
(eldev-use-package-archive 'melpa)
|
||||||
|
(eldev-use-package-archive `("oni" . ,(expand-file-name "../bin")))
|
||||||
|
|
||||||
|
(eldev-use-plugin 'autoloads)
|
||||||
|
|
||||||
|
(setf eldev-files-to-package
|
||||||
|
`(:or ,eldev-files-to-package
|
||||||
|
'("*.el" "./snippets/**/*")))
|
10
oni-org/Cask
10
oni-org/Cask
|
@ -1,10 +0,0 @@
|
||||||
(source gnu)
|
|
||||||
(source melpa)
|
|
||||||
|
|
||||||
(package-file "./oni-org.el")
|
|
||||||
|
|
||||||
(files
|
|
||||||
"*.el"
|
|
||||||
("snippets" "./snippets/*")
|
|
||||||
("icons" "./icons/*")
|
|
||||||
("capture-templates" "./capture-templates/*"))
|
|
20
oni-org/Eldev
Normal file
20
oni-org/Eldev
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
; -*- mode: emacs-lisp; lexical-binding: t -*-
|
||||||
|
|
||||||
|
;; Uncomment some calls below as needed for your project.
|
||||||
|
(eldev-use-package-archive 'gnu-elpa)
|
||||||
|
;(eldev-use-package-archive 'nongnu-elpa)
|
||||||
|
(eldev-use-package-archive 'melpa)
|
||||||
|
(eldev-use-package-archive `("oni" . ,(expand-file-name "../bin")))
|
||||||
|
|
||||||
|
(eldev-use-local-dependency
|
||||||
|
(car (directory-files (format "%s/share/emacs/site-lisp" (getenv "GUIX_ENVIRONMENT"))
|
||||||
|
t "org-pretty-table" nil 1)))
|
||||||
|
|
||||||
|
(eldev-use-plugin 'autoloads)
|
||||||
|
|
||||||
|
(setf eldev-files-to-package
|
||||||
|
`(:or ,eldev-files-to-package
|
||||||
|
'("*.el"
|
||||||
|
"./snippets/**/*"
|
||||||
|
"./icons/**/*"
|
||||||
|
"./capture-templates/**/*")))
|
|
@ -4,8 +4,8 @@
|
||||||
|
|
||||||
;; Author: Tom Willemse <tom@ryuslash.org>
|
;; Author: Tom Willemse <tom@ryuslash.org>
|
||||||
;; Keywords: local
|
;; Keywords: local
|
||||||
;; Version: 2023.0411.202312
|
;; Version: 2023.0517.001154
|
||||||
;; Package-Requires: (oni-yasnippet oni-alert oni-hydra org org-contrib org-bullets org-edna diminish all-the-icons olivetti form-feed org-pretty-table)
|
;; Package-Requires: (oni-yasnippet oni-alert oni-hydra org org-bullets org-edna diminish all-the-icons olivetti form-feed org-pretty-table)
|
||||||
|
|
||||||
;; This program is free software; you can redistribute it and/or modify
|
;; This program is free software; you can redistribute it and/or modify
|
||||||
;; it under the terms of the GNU General Public License as published by
|
;; it under the terms of the GNU General Public License as published by
|
||||||
|
@ -658,8 +658,8 @@ After running it once remove it from `org-capture-after-finalize-hook'."
|
||||||
(height . 24)))
|
(height . 24)))
|
||||||
(org-capture nil "t")
|
(org-capture nil "t")
|
||||||
(delete-other-windows)
|
(delete-other-windows)
|
||||||
(setf (frame-width) 80)
|
(set-frame-width nil 80)
|
||||||
(setf (frame-height) 24)
|
(set-frame-height nil 24)
|
||||||
(add-hook 'org-capture-after-finalize-hook 'oni-org-delete-frame-once)))
|
(add-hook 'org-capture-after-finalize-hook 'oni-org-delete-frame-once)))
|
||||||
|
|
||||||
(defun oni-org-get-url-title (url)
|
(defun oni-org-get-url-title (url)
|
||||||
|
@ -1170,5 +1170,27 @@ placed above TARGET. Otherwise it will be placed below it."
|
||||||
(quit nil)))))
|
(quit nil)))))
|
||||||
(widen))))))
|
(widen))))))
|
||||||
|
|
||||||
|
(defun oni-org-clock+post-drawer ()
|
||||||
|
(if (and (markerp org-clock-hd-marker)
|
||||||
|
(marker-buffer org-clock-hd-marker))
|
||||||
|
(progn (set-buffer (marker-buffer org-clock-hd-marker))
|
||||||
|
(org-capture-put-target-region-and-position)
|
||||||
|
(widen)
|
||||||
|
(goto-char org-clock-hd-marker)
|
||||||
|
(let ((end (org-entry-end-position)))
|
||||||
|
(while (search-forward ":END:" end t))))
|
||||||
|
(user-error "No running clock that could be used as capture target")))
|
||||||
|
|
||||||
|
(defun init-find-weekly-review-file ()
|
||||||
|
(interactive)
|
||||||
|
(find-file (format-time-string "u:/documents/gtd/weekly-reviews/%Y-%W.org"))
|
||||||
|
(if (= (point-min) (point-max))
|
||||||
|
(progn
|
||||||
|
(insert (format-time-string "#+TITLE: Weekly Review Report for Week %-W %Y\n"))
|
||||||
|
(insert "\n")
|
||||||
|
(insert "See [[file:u:/documents/gtd/checklists/weekly-review.org][Weekly Review Checklist]]\n")
|
||||||
|
(insert "\n"))
|
||||||
|
(goto-char (point-min))))
|
||||||
|
|
||||||
(provide 'oni-org)
|
(provide 'oni-org)
|
||||||
;;; oni-org.el ends here
|
;;; oni-org.el ends here
|
||||||
|
|
|
@ -1,8 +0,0 @@
|
||||||
(source gnu)
|
|
||||||
(source melpa)
|
|
||||||
|
|
||||||
(package-file "./oni-php.el")
|
|
||||||
|
|
||||||
(files
|
|
||||||
"*.el"
|
|
||||||
("snippets" "./snippets/*"))
|
|
13
oni-php/Eldev
Normal file
13
oni-php/Eldev
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
; -*- mode: emacs-lisp; lexical-binding: t -*-
|
||||||
|
|
||||||
|
;; Uncomment some calls below as needed for your project.
|
||||||
|
(eldev-use-package-archive 'gnu-elpa)
|
||||||
|
;(eldev-use-package-archive 'nongnu-elpa)
|
||||||
|
(eldev-use-package-archive 'melpa)
|
||||||
|
(eldev-use-package-archive `("oni" . ,(expand-file-name "../bin")))
|
||||||
|
|
||||||
|
(eldev-use-plugin 'autoloads)
|
||||||
|
|
||||||
|
(setf eldev-files-to-package
|
||||||
|
`(:or ,eldev-files-to-package
|
||||||
|
'("*.el" "./snippets/**/*")))
|
|
@ -1,8 +0,0 @@
|
||||||
(source gnu)
|
|
||||||
(source melpa)
|
|
||||||
|
|
||||||
(package-file "./oni-python.el")
|
|
||||||
|
|
||||||
(files
|
|
||||||
"*.el"
|
|
||||||
("snippets" "./snippets/*"))
|
|
13
oni-python/Eldev
Normal file
13
oni-python/Eldev
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
; -*- mode: emacs-lisp; lexical-binding: t -*-
|
||||||
|
|
||||||
|
;; Uncomment some calls below as needed for your project.
|
||||||
|
(eldev-use-package-archive 'gnu-elpa)
|
||||||
|
;(eldev-use-package-archive 'nongnu-elpa)
|
||||||
|
(eldev-use-package-archive 'melpa)
|
||||||
|
(eldev-use-package-archive `("oni" . ,(expand-file-name "../bin")))
|
||||||
|
|
||||||
|
(eldev-use-plugin 'autoloads)
|
||||||
|
|
||||||
|
(setf eldev-files-to-package
|
||||||
|
`(:or ,eldev-files-to-package
|
||||||
|
'("*.el" "./snippets/**/*")))
|
|
@ -1,8 +0,0 @@
|
||||||
(source gnu)
|
|
||||||
(source melpa)
|
|
||||||
|
|
||||||
(package-file "./oni-ruby.el")
|
|
||||||
|
|
||||||
(files
|
|
||||||
"*.el"
|
|
||||||
("snippets" "./snippets/*"))
|
|
13
oni-ruby/Eldev
Normal file
13
oni-ruby/Eldev
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
; -*- mode: emacs-lisp; lexical-binding: t -*-
|
||||||
|
|
||||||
|
;; Uncomment some calls below as needed for your project.
|
||||||
|
(eldev-use-package-archive 'gnu-elpa)
|
||||||
|
;(eldev-use-package-archive 'nongnu-elpa)
|
||||||
|
(eldev-use-package-archive 'melpa)
|
||||||
|
(eldev-use-package-archive `("oni" . ,(expand-file-name "../bin")))
|
||||||
|
|
||||||
|
(eldev-use-plugin 'autoloads)
|
||||||
|
|
||||||
|
(setf eldev-files-to-package
|
||||||
|
`(:or ,eldev-files-to-package
|
||||||
|
'("*.el" "./snippets/**/*")))
|
|
@ -1,8 +0,0 @@
|
||||||
(source gnu)
|
|
||||||
(source melpa)
|
|
||||||
|
|
||||||
(package-file "./oni-twig.el")
|
|
||||||
|
|
||||||
(files
|
|
||||||
"*.el"
|
|
||||||
("snippets" "./snippets/*"))
|
|
13
oni-twig/Eldev
Normal file
13
oni-twig/Eldev
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
; -*- mode: emacs-lisp; lexical-binding: t -*-
|
||||||
|
|
||||||
|
;; Uncomment some calls below as needed for your project.
|
||||||
|
(eldev-use-package-archive 'gnu-elpa)
|
||||||
|
;(eldev-use-package-archive 'nongnu-elpa)
|
||||||
|
(eldev-use-package-archive 'melpa)
|
||||||
|
(eldev-use-package-archive `("oni" . ,(expand-file-name "../bin")))
|
||||||
|
|
||||||
|
(eldev-use-plugin 'autoloads)
|
||||||
|
|
||||||
|
(setf eldev-files-to-package
|
||||||
|
`(:or ,eldev-files-to-package
|
||||||
|
'("*.el" "./snippets/**/*")))
|
Loading…
Reference in a new issue