Commit graph

16 commits

Author SHA1 Message Date
Benjamin Howell
d0f702f6a4 Add Handlebars .hbs parsing using web-mode
web-mode.el already supports .hbs (handlebars) files. This extension is used for general handlebars files and is used in ember.js projects. Added .hbs to the web-mode.el file extension list.
2019-07-28 09:52:46 +03:00
Bozhidar Batsov
cecae9ca19 Replace usages of eval-after-load with with-eval-after-load
`with-eval-after-load` was introduced in Emacs 24.4 and its
usage results in a cleaner code.

`eval-after-load` is considered ill-behaved because it is a function,
not a macro, and thus requires the code inside it to be quoted, which
means that it cannot be byte-compiled. It also accepts only one form,
so if you have more than one, you need to use `progn`.

More details - https://stackoverflow.com/questions/21880139/what-is-with-eval-after-load-in-emacs-lisp
2018-09-14 09:50:00 +03:00
Bozhidar Batsov
bf57696835 Update the copyright years 2018-05-06 09:21:24 +03:00
Bozhidar Batsov
e0ca7c7003 Update the copyright years 2017-01-04 01:20:26 +02:00
Eric Zhang
aafe4156ed Fix some auto-pairing issues when editing erb file with web-mode (#805) 2016-04-18 09:19:06 -07:00
Bozhidar Batsov
ebd6e9d591 Update the copyright years 2016-01-31 08:44:18 +02:00
Bozhidar Batsov
c2da437aa4 Update copyright years 2015-03-03 13:04:34 +02:00
Bozhidar Batsov
dc82375714 Update copyright years 2014-12-07 11:37:46 +02:00
Bozhidar Batsov
5bee586f0a [Fix #602] Associate .tpl files with web-mode 2014-07-15 11:40:18 +03:00
toctan
07ff79872e Move smartparens pair definition out of hooks
There are two reasons for doing this:
- It's inefficient, we don't have to define the pairs every time we
  enter the mode.
- It's extremely difficult to override the pair definition, even with
  `eval-after-load` and `add-hook`
2014-06-25 11:04:49 +08:00
toctan
207ec885db Make web-mode play nice with smartparens
web-mode's auto paring is in conflict with smartparens. With
smartparens, since the closing '>' is inserted right after the opening
'<' and web-mode is not aware of that, the extra closing '>' would be
inserted. That's very annoying.
2014-06-14 10:48:16 +08:00
toctan
f73e348534 Remove web-mode customization
- Code indent offset is subjected to personal taste, I think we should
  stick to the web-mode default, which is sensible enough, and leave it
  to the user to decide.
- `web-mode-disable-autocompletion` is no longer used by web-mode.
- As to `newline-and-indent`, I think we should be consistent across all
  major modes. And this line of code will become useless with Emacs 24.4.
2014-06-14 10:29:27 +08:00
Jeremy Bi
430c9825cb web-mode is now compatible with minor modes 2014-02-03 09:53:24 +08:00
Bozhidar Batsov
dbe0ed889a Use prelude-require-packages everywhere 2013-11-26 12:52:29 +02:00
Gabriel J. Pérez Irizarry
8a182d8dd3 Fix issue disabling white-space-mode. 2013-08-01 12:58:19 -04:00
Gabriel J. Pérez Irizarry
1f141e9b08 Adds web-mode and prelude module. 2013-08-01 11:23:37 -04:00