Skip to content

Commit

Permalink
moved commented out code to the bottom of the elm config section
Browse files Browse the repository at this point in the history
  • Loading branch information
levinem committed May 19, 2022
1 parent 1476a90 commit 8972403
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions init.el
Original file line number Diff line number Diff line change
Expand Up @@ -127,14 +127,9 @@
;; Elm mode
(add-to-list 'auto-mode-alist '("\\.elm\\'" . elm-mode))
(add-hook 'elm-mode-hook 'elm-indent-simple-mode)

;;(add-hook 'elm-mode-hook 'lsp-deferred-mode)
;;(add-hook 'elm-mode-hook 'elm-format-on-save-mode)
(add-hook 'elm-mode-hook (lambda ()
(message "Starting the elm-language-server in the background")
(shell-command "elm-language-server &")))
;;(add-hook 'elm-mode-hook (lambda ()
;; (add-hook 'after-save-hook 'elm-format-on-save-mode)))
(add-hook 'elm-mode-hook (lambda ()
(message "Adding the untabify after save hook")
(add-hook 'after-save-hook (lambda ()
Expand All @@ -143,6 +138,10 @@
(add-hook 'elm-mode-hook (lambda ()
(message "Resetting the C-c C-f keybinding")
(local-set-key (kbd "C-c C-f") #'elm-format-buffer)))
;;(add-hook 'elm-mode-hook (lambda ()
;; (add-hook 'after-save-hook 'elm-format-on-save-mode)))
;;(add-hook 'elm-mode-hook 'lsp-deferred-mode)
;;(add-hook 'elm-mode-hook 'elm-format-on-save-mode)
;; (add-hook 'elm-mode-hook (lambda ()
;; (message "Adding the elm compile on save hook")
;; (add-hook 'after-save-hook (lambda ()
Expand Down

0 comments on commit 8972403

Please sign in to comment.