From f5cf4a37bdfad79ab79ebd4441a8bb9f3508e561 Mon Sep 17 00:00:00 2001 From: Wojciech Kozlowski Date: Fri, 8 Apr 2022 21:32:56 +0200 Subject: [PATCH] Add format module --- config.el | 3 +++ init.el | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/config.el b/config.el index 84c4721..3311f05 100644 --- a/config.el +++ b/config.el @@ -106,6 +106,9 @@ ;; Always open magit in other window. (after! magit (setq magit-display-buffer-function #'magit-display-buffer-traditional)) +;; Don't use the LSP formatter. +(after! lsp (setq +format-with-lsp nil)) + ;; Python virtualenv configuration. (after! lsp-pyright (setq lsp-pyright-venv-path (concat (getenv "HOME") "/.virtualenvs"))) diff --git a/init.el b/init.el index 901efa5..7a19457 100644 --- a/init.el +++ b/init.el @@ -55,7 +55,7 @@ ;;(evil +everywhere); come to the dark side, we have cookies file-templates ; auto-snippets for empty files fold ; (nigh) universal code folding - ;;(format +onsave) ; automated prettiness + format ; automated prettiness ;;god ; run Emacs commands without modifier keys ;;lispy ; vim for lisp, for people who don't like vim ;;multiple-cursors ; editing in many places at once