merge: pull request #5893 from gilbertwong96/fix/erlang
fix(erlang): fix broken erlang-mode
This commit is contained in:
commit
b51d7d6d7f
3 changed files with 7 additions and 13 deletions
|
@ -7,12 +7,3 @@
|
||||||
:config
|
:config
|
||||||
(when (featurep! +lsp)
|
(when (featurep! +lsp)
|
||||||
(add-hook 'erlang-mode-local-vars-hook #'lsp!)))
|
(add-hook 'erlang-mode-local-vars-hook #'lsp!)))
|
||||||
|
|
||||||
|
|
||||||
(use-package! company-erlang
|
|
||||||
:when (featurep! :completion company)
|
|
||||||
:unless (featurep! +lsp)
|
|
||||||
:hook (erlang-mode . company-erlang-init)
|
|
||||||
:config
|
|
||||||
(add-hook! 'erlang-mode-hook
|
|
||||||
(add-hook 'after-save-hook #'ivy-erlang-complete-reparse nil t)))
|
|
||||||
|
|
6
modules/lang/erlang/doctor.el
Normal file
6
modules/lang/erlang/doctor.el
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
;; -*- lexical-binding: t; no-byte-compile: t; -*-
|
||||||
|
;;; lang/erlang/doctor.el
|
||||||
|
|
||||||
|
(assert! (or (not (featurep! +lsp))
|
||||||
|
(featurep! :tools lsp))
|
||||||
|
"This module requires (:tools lsp)")
|
|
@ -1,7 +1,4 @@
|
||||||
;; -*- no-byte-compile: t; -*-
|
;; -*- no-byte-compile: t; -*-
|
||||||
;;; lang/erlang/packages.el
|
;;; lang/erlang/packages.el
|
||||||
|
|
||||||
(package! erlang :pin "118cb37bd5b9e9cb792f0463e46fdb04f151dcd5")
|
(package! erlang :pin "c1ab4b5424be7504cfc3c4e87a2116b7731d8f2d")
|
||||||
(unless (featurep! +lsp)
|
|
||||||
(when (featurep! :completion company)
|
|
||||||
(package! company-erlang :pin "bc0524a16f17b66c7397690e4ca0e004f09ea6c5")))
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue