jcollard / elm-mode

Elm mode for emacs
GNU General Public License v3.0
373 stars 67 forks source link

default binding use elm-mode-format-buffer #183

Closed YievCkim closed 2 years ago

YievCkim commented 2 years ago

Hi !

When I use elm-format from emacs with C-c C-f I get this error message:

‘elm-mode-format-buffer’ is an obsolete command (as of 20190113); use ‘elm-format-buffer’ instead.

I tried to look into customize-mode to change this, but I didn't find nothing about this.

YievCkim commented 2 years ago

As a workaround you can put this in your .emacs file:

(add-hook
 'elm-mode-hook
 (lambda ()
   (define-key elm-mode-map (kbd "C-c C-f") 'elm-format-buffer)
   )
 )