Skip to content

Commit

Permalink
Add web-mode configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
yasuyk committed Apr 10, 2016
1 parent df666a3 commit 3eecd38
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ Add the following to your emacs init file.
(eval-after-load 'sgml-mode
'(define-key html-mode-map (kbd "C-c b") 'web-beautify-html))

(eval-after-load 'web-mode
'(define-key web-mode-map (kbd "C-c b") 'web-beautify-html))

(eval-after-load 'css-mode
'(define-key css-mode-map (kbd "C-c b") 'web-beautify-css))

Expand Down Expand Up @@ -74,6 +77,11 @@ add the following hook to your emacs configuration:
(lambda ()
(add-hook 'before-save-hook 'web-beautify-html-buffer t t))))

(eval-after-load 'web-mode
'(add-hook 'web-mode-hook
(lambda ()
(add-hook 'before-save-hook 'web-beautify-html-buffer t t))))

(eval-after-load 'css-mode
'(add-hook 'css-mode-hook
(lambda ()
Expand Down

0 comments on commit 3eecd38

Please sign in to comment.