summaryrefslogtreecommitdiffstats
path: root/emacs/.emacs.d/init.org
diff options
context:
space:
mode:
authorGravatar Tom Willemse2015-11-21 20:20:53 +0100
committerGravatar Tom Willemse2015-11-21 20:20:53 +0100
commitd41afa89fd54afac98d13db52815a4147cfd43af (patch)
treecaff944b6ed58a24057c07585ee9eb6a341aca27 /emacs/.emacs.d/init.org
parentf5ab56de77a33c955178a0db749f53c4e3c88183 (diff)
downloaddotfiles-d41afa89fd54afac98d13db52815a4147cfd43af.tar.gz
dotfiles-d41afa89fd54afac98d13db52815a4147cfd43af.zip
Add emmet-mode configuration
Diffstat (limited to 'emacs/.emacs.d/init.org')
-rw-r--r--emacs/.emacs.d/init.org13
1 files changed, 13 insertions, 0 deletions
diff --git a/emacs/.emacs.d/init.org b/emacs/.emacs.d/init.org
index 46a5cd1..7c1bf72 100644
--- a/emacs/.emacs.d/init.org
+++ b/emacs/.emacs.d/init.org
@@ -1712,6 +1712,19 @@
"\\_<[-+]?[[:digit:]]+\\(?:\.[[:digit:]]+\\)?.*?\\_>"))
#+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
These options and calls need to come last so they don't interfere