From e76476f6bfcb1756def7c2f5e4e9115688a4d3cb Mon Sep 17 00:00:00 2001 From: Zheng Qu Date: Tue, 7 Nov 2023 09:12:30 +0100 Subject: [PATCH] refactor: Clean up layers --- init.el | 41 ++++++++++++++++++++++------------------- 1 file changed, 22 insertions(+), 19 deletions(-) diff --git a/init.el b/init.el index 11ace61..bdb4bd4 100644 --- a/init.el +++ b/init.el @@ -32,30 +32,14 @@ This function should only modify configuration layer settings." ;; List of configuration layers to load. dotspacemacs-configuration-layers - '(csv - ;; Web - (html :variables web-fmt-tool 'prettier) - (javascript :variables - javascript-backend 'lsp - javascript-fmt-tool 'prettier - javascript-import-tool 'import-js - javascript-fmt-on-save t - ;; due to possible conflicts with flycheck (e.g. semicolon) - js2-mode-show-strict-warnings nil - prettier-js-args nil) - (typescript :variables - typescript-backend 'lsp - typescript-fmt-tool 'prettier - typescript-import-tool 'import-js - typescript-fmt-on-save t - typescript-linter 'eslint - prettier-js-args nil) + '( ;; Programming languages (docker :variables docker-dockerfile-backend 'lsp) major-modes (groovy :variables groovy-backend 'lsp) ess + php emacs-lisp shell-scripts (julia :variables @@ -84,6 +68,21 @@ This function should only modify configuration layer settings." (cmake :variables cmake-enable-cmake-ide-support nil cmake-backend 'lsp) + (javascript :variables + javascript-backend 'lsp + javascript-fmt-tool 'prettier + javascript-import-tool 'import-js + javascript-fmt-on-save t + ;; due to possible conflicts with flycheck (e.g. semicolon) + js2-mode-show-strict-warnings nil + prettier-js-args nil) + (typescript :variables + typescript-backend 'lsp + typescript-fmt-tool 'prettier + typescript-import-tool 'import-js + typescript-fmt-on-save t + typescript-linter 'eslint + prettier-js-args nil) ;; Autocompletion and language server syntax-checking @@ -117,12 +116,16 @@ This function should only modify configuration layer settings." lsp-ui-sideline-show-code-actions t lsp-lens-enable nil) + ;; Virtual environments + (conda :variables conda-anaconda-home "~/.miniconda3") + ;; File types (markdown :variables markdown-command "marked" markdown-live-preview-engine 'vmd) + csv yaml - html + (html :variables web-fmt-tool 'prettier) (org :variables org-startup-indented t org-want-todo-bindings t