Add emmet-mode configuration

This commit is contained in:
Tom Willemse 2015-11-21 20:20:53 +01:00
parent f5ab56de77
commit d41afa89fd

View file

@ -1712,6 +1712,19 @@
"\\_<[-+]?[[:digit:]]+\\(?:\.[[:digit:]]+\\)?.*?\\_>")) "\\_<[-+]?[[:digit:]]+\\(?:\.[[:digit:]]+\\)?.*?\\_>"))
#+END_SRC #+END_SRC
** Emmet mode
I'm one of the strange people who use {{{key(C-j)}}} instead of
{{{key(RET)}}} to insert a new line (and indent), so Emmet mode's
default binding of using {{{key(C-j)}}} to expand a line is very
disruptive to me.
#+BEGIN_SRC emacs-lisp
(stante-after emmet-mode
(define-key emmet-mode-keymap (kbd "C-j") nil)
(define-key emmet-mode-keymap (kbd "RET") #'emmet-expand-line))
#+END_SRC
* Final touches * Final touches
These options and calls need to come last so they don't interfere These options and calls need to come last so they don't interfere