Skip to content

Commit

Permalink
Add support for OCaml dune projects
Browse files Browse the repository at this point in the history
  • Loading branch information
hongchangwu committed Aug 26, 2020
1 parent a2b5a70 commit 6f00b5f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@
### New features

* New functions `projectile-acquire-root` and `projectile-process-current-project-buffers-current`
* New project commands `projectile-package-project`, `projectile-install-project`.
* New project commands `projectile-package-project`, `projectile-install-project`.
* [#1539](https://github.com/bbatsov/projectile/pull/1539): New defcustom `projectile-auto-discover` controlling whether to automatically discover projects in the search path when `projectile-mode` activates.
* Add [emacs-eldev](https://github.com/doublep/eldev) project type.
* Add Dart project type.
* [#1555](https://github.com/bbatsov/projectile/pull/1555) Add search with ripgrep.
* [#1555](https://github.com/bbatsov/projectile/pull/1555) Add search with ripgrep.
* Add Python-poetry project type.
* [#1576](https://github.com/bbatsov/projectile/pull/1576) Add OCaml [Dune](https://github.com/ocaml/dune) project type.

### Changes

Expand Down
3 changes: 3 additions & 0 deletions doc/modules/ROOT/pages/projects.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ are the configuration files of various build tools. Out of the box the following
| stack.yaml
| Haskell's stack tool based project

| dune-project
| OCaml Dune project file

| info.rkt
| Racket package description file

Expand Down
5 changes: 5 additions & 0 deletions projectile.el
Original file line number Diff line number Diff line change
Expand Up @@ -2866,6 +2866,11 @@ test/impl/other files as below:
:run "dart"
:test-suffix "_test.dart")

;; OCaml
(projectile-register-project-type 'ocaml-dune '("dune-project")
:project-file "dune-project"
:compile "dune build"
:test "dune runtest")

(defvar-local projectile-project-type nil
"Buffer local var for overriding the auto-detected project type.
Expand Down

0 comments on commit 6f00b5f

Please sign in to comment.