aboutsummaryrefslogtreecommitdiff
path: root/Emacs
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2020-08-09 17:27:37 +0100
committerAryadev Chavali <aryadev@aryadevchavali.com>2020-08-09 17:27:37 +0100
commitfe1378bc2908850c6fee11414c0d467e6cda98a7 (patch)
treec454ff15064a65ae99fc54cb16b6211adfeba3f2 /Emacs
parent2caa53a5a23310356ed274a6e404c83fd09c73f5 (diff)
downloaddotfiles-fe1378bc2908850c6fee11414c0d467e6cda98a7.tar.gz
dotfiles-fe1378bc2908850c6fee11414c0d467e6cda98a7.tar.bz2
dotfiles-fe1378bc2908850c6fee11414c0d467e6cda98a7.zip
+html/css/js configuration for Emacs
Use web mode for as much stuff as possible, also setup emmet for ease of use in html
Diffstat (limited to 'Emacs')
-rw-r--r--Emacs/.config/emacs/config.org21
1 files changed, 21 insertions, 0 deletions
diff --git a/Emacs/.config/emacs/config.org b/Emacs/.config/emacs/config.org
index 166a247..1b67d6d 100644
--- a/Emacs/.config/emacs/config.org
+++ b/Emacs/.config/emacs/config.org
@@ -1011,6 +1011,27 @@ use-package clang-format for ease of use formatting, binding to "C-c '" for both
(bind-key "C-c '" #'clang-format-region c-mode-map)
(bind-key "C-c '" #'clang-format-region c++-mode-map))
#+END_SRC
+** HTML/CSS/JS
+Firstly, web mode for consistent colouring of syntax.
+#+BEGIN_SRC emacs-lisp
+(use-package web-mode
+ :mode ("\\.html" . web-mode)
+ :mode ("\\.js" . web-mode)
+ :mode ("\\.css" . web-mode))
+#+END_SRC
+
+Then emmet for super speed
+#+BEGIN_SRC emacs-lisp
+(use-package emmet-mode
+ :hook (web-mode . emmet-mode)
+ :general
+ (general-def
+ :states 'insert
+ :keymaps 'emmet-mode-keymap
+ "TAB" #'emmet-expand-line
+ "M-j" #'emmet-next-edit-point
+ "M-k" #'emmet-prev-edit-point))
+#+END_SRC
** Emacs lisp
#+BEGIN_SRC emacs-lisp
(with-eval-after-load "lisp-mode"