Make idris2-mode play nice with envrc
This commit is contained in:
parent
94f00b198a
commit
beafb54995
15
config.org
15
config.org
|
@ -1045,8 +1045,21 @@ Disable company in idris2-mode, it's broken for now
|
|||
#+begin_src emacs-lisp
|
||||
(after! idris2-mode
|
||||
:config
|
||||
(setq company-global-modes '(not idris2-mode)))
|
||||
(setq company-global-modes '(not idris2-mode idris2-repl-mode)))
|
||||
#+end_src
|
||||
|
||||
Patch idris2-run via advice to pass through the environment, so that envrc will work properly.
|
||||
We need to patch ~idris2-ru~, ~idris2-repl-buffer~, and the ~idris2-ipkg-command~ family
|
||||
#+begin_src emacs-lisp
|
||||
(after! idris2-mode
|
||||
(require 'envrc)
|
||||
(advice-add 'idris2-run :around #'envrc-propagate-environment)
|
||||
(advice-add 'idris2-repl-buffer :around #'envrc-propagate-environment)
|
||||
(advice-add 'idris2-ipkg-command :around #'envrc-propagate-environment)
|
||||
(advice-add 'idris2-ipkg-build :around #'envrc-propagate-environment)
|
||||
(advice-add 'idris2-ipkg-clean :around #'envrc-propagate-environment))
|
||||
#+end_src
|
||||
|
||||
** Haskell
|
||||
Setup formatting
|
||||
#+begin_src emacs-lisp
|
||||
|
|
Loading…
Reference in New Issue