Skip to content

emacs: setup dune mode if available#56

Open
gregsgit wants to merge 1 commit intoocaml-opam:masterfrom
gregsgit:master
Open

emacs: setup dune mode if available#56
gregsgit wants to merge 1 commit intoocaml-opam:masterfrom
gregsgit:master

Conversation

@gregsgit
Copy link
Copy Markdown

Load dune.el from switch/share/emacs/site-lisp

Comment thread emacs/emacs.ml

(defun opam-setup-dune ()
(load "dune.el")
(add-to-list 'auto-mode-alist '("/dune\\'" . dune-mode))
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's also dune-project.

Comment thread emacs/emacs.ml
(add-hook 'tuareg-mode-hook 'utop-minor-mode))

(defun opam-setup-dune ()
(load "dune.el")
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Won't this blow up if dune.el is not on Emacs's load-path?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants