From 2f01a82bd5452b10ac8f2711c6d81412b6d7c456 Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Tue, 25 Feb 2020 13:29:09 -0500 Subject: [PATCH] Remove lsp-restart in format-all-after hook --- emacs/init.org | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/emacs/init.org b/emacs/init.org index c333950..971aa20 100755 --- a/emacs/init.org +++ b/emacs/init.org @@ -5398,15 +5398,7 @@ A package that bundles together common code beautifying tools for many languages (use-package format-all :commands (format-all-buffer) :init - (leader-def-key "cf" 'format-all-buffer) - :config - (with-eval-after-load 'lsp-mode - (add-hook 'format-all-after-format-functions - (lambda (formatter status) - (when (and (eq status :reformatted) - (equal major-mode 'python-mode) - (boundp 'lsp-mode) lsp-mode) - (lsp-restart-workspace)))))) + (leader-def-key "cf" 'format-all-buffer)) #+END_SRC * Compiling