Use lsp-elm and remove customizations

This commit is contained in:
Vladan Popovic 2019-12-08 15:17:31 +01:00
parent c264cf17ca
commit b6d2c0fddf
3 changed files with 11 additions and 30 deletions

View file

@ -1,23 +0,0 @@
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(elm-compile-arguments '("--output=elm-couchapp/_attachments/index.html"))
'(elm-compile-command '("elm make"))
'(elm-format-on-save t)
'(elm-interactive-command '("elm" "repl"))
'(elm-package-command '("elm" "package"))
'(elm-package-json "elm.json")
'(elm-reactor-command '("elm" "reactor"))
'(elm-tags-exclude-elm-stuff nil)
'(elm-tags-on-save 1)
'(package-selected-packages
'(material-theme racer evil-mode helm rust-mode highlight-parentheses-mode merlin forge magit yaml-mode neotree lsp-rust hindent hi2 flycheck-haskell ac-haskell-process lsp-haskell haste haskell-snippets haskell-mode rainbow-identifiers elm-test-runner flycheck-elm elm-mode company ztree ac-etags sqlformat cargo evil)))
;;
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)

View file

@ -1,8 +1,3 @@
;; Load emacs customizations.
;; The customization file shouldn't should be only
(setq custom-file "~/.emacs.d/custom.el")
(load custom-file)
;; Configure emacs packages.
(setq should-install-packages t) ;; Define this before everything to speed up startup.
(require 'package)

View file

@ -1,14 +1,23 @@
;;;; Elm mode configuration.
(require 'jenga-functions)
(instl 'elm-mode)
(instl 'lsp-mode)
(instl 'lsp-ui)
(instl 'yasnippet)
(add-hook 'elm-mode-hook #'company-mode)
(add-hook 'elm-mode-hook #'rainbow-delimiters-mode)
(add-hook 'elm-mode-hook #'lsp)
(add-hook 'elm-mode-hook (lambda () (setq evil-auto-indent nil)))
(add-hook 'after-init-hook #'global-flycheck-mode)
(with-eval-after-load 'flycheck
'(add-hook 'flycheck-mode-hook #'flycheck-elm-setup))
(add-to-list 'company-backends 'company-elm)
(define-key elm-mode-map (kbd "TAB") #'company-indent-or-complete-common)
;; Turn on Elm mode with *.elm files.
(add-to-list 'auto-mode-alist '("\\.elm\\'" . elm-mode))
(add-to-list 'company-backends 'company-elm)
(setq elm-format-on-save t
elm-tags-on-save t