From 46cda8fc3781ec3592b5b775d13df131720654aa Mon Sep 17 00:00:00 2001 From: Martin Polden Date: Fri, 29 Dec 2023 00:04:56 +0100 Subject: Revert "eglot: Remove backslash-escape from GFM documentation" This reverts commit 6897f86814ef81150dd148893d9b3202a2b48dc7. Fixed by https://github.com/jrblevin/markdown-mode/pull/756. --- lisp/init-eglot.el | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'lisp/init-eglot.el') diff --git a/lisp/init-eglot.el b/lisp/init-eglot.el index 0f77754..c46fed4 100644 --- a/lisp/init-eglot.el +++ b/lisp/init-eglot.el @@ -32,13 +32,6 @@ (unless (member major-mode mpolden/inhibit-lsp) (eglot-ensure))) -(defun mpolden/gfm-unescape-string (string) - "Remove backslash-escape of punctuation characters in STRING." - ;; https://github.github.com/gfm/#backslash-escapes - (replace-regexp-in-string "[\\\\]\\([][!\"#$%&'()*+,./:;<=>?@\\^_`{|}~-]\\)" - "\\1" - string)) - (use-package eglot :ensure t :init @@ -64,13 +57,7 @@ ;; C-c o organizes imports ("C-c o" . eglot-code-action-organize-imports) ;; C-c q shows code actions (quickfix) - ("C-c q" . eglot-code-actions)) - :config - ;; https://github.com/joaotavora/eglot/issues/333 - ;; https://github.com/jrblevin/markdown-mode/issues/377 - (advice-add 'eglot--format-markup - :filter-return - 'mpolden/gfm-unescape-string)) + ("C-c q" . eglot-code-actions))) (provide 'init-eglot) -- cgit v1.2.3