From da8ee0d20a9a39201068780db04de4379f420220 Mon Sep 17 00:00:00 2001 From: Lucien Cartier-Tilet Date: Wed, 2 Nov 2022 16:24:44 +0100 Subject: [PATCH] [Emacs] Add support for Less css --- org/config/emacs.org | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/org/config/emacs.org b/org/config/emacs.org index cfd8089..73d06be 100644 --- a/org/config/emacs.org +++ b/org/config/emacs.org @@ -7403,6 +7403,18 @@ And let’s add some autocompletion for CSS. "gh" #'counsel-css))) #+end_src +For some reason, although it is built-in, ~less-css-mode~ does not +activate when I open ~.less~ files by default. Let’s fix that. +#+begin_src emacs-lisp +(use-package less-css-mode + :straight (:type built-in) + :defer t + :mode "\\.less\\'" + :hook (less-css-mode . smartparens-mode) + :hook (less-css-mode . lsp-deferred) + :hook (less-css-mode . prettier-js-mode)) +#+end_src + ***** Javascript :PROPERTIES: :CUSTOM_ID: Packages-Configuration-Programming-languages-General-Programming-Languages-Web-programming-Javascript-8k5arup085j0