summaryrefslogtreecommitdiffstats
path: root/emacs
diff options
context:
space:
mode:
Diffstat (limited to 'emacs')
-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