From d9676f092be2f7c3cf17c8e86fcff5e41129b20e Mon Sep 17 00:00:00 2001 From: Gerard Vermeulen Date: Wed, 4 Sep 2024 10:17:50 +0200 Subject: [PATCH] Remove superfluous `add-hook' form --- README.org | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/README.org b/README.org index 0e1208e..190068e 100644 --- a/README.org +++ b/README.org @@ -3734,8 +3734,7 @@ Return \"Front Matter\" when current page is above the first headline." [[https://github.com/joaotavora/eglot#readme][Emacs polyGLOT (Eglot)]] is an Emacs language-server-protocol client that stays out of your way. [[info:eglot#Top][Eglot (info)]] is a builtin since Emacs-29.1. The following listings set up [[https://github.com/joaotavora/eglot][Eglot]]: -1. Listing [[lst:minimal-eglot-setup][minimal Eglot setup]] adds key bindings to =eglot-mode-keymap= and - ensures automatic [[https://github.com/joaotavora/eglot][Eglot]] startup in case of visiting files in =python-mode=. +1. Listing [[lst:minimal-eglot-setup][minimal Eglot setup]] adds key bindings to =eglot-mode-keymap=. 2. Listing [[lst:setup-oglot]] uses [[https://github.com/gav451/oglot#][oglot]] to enable using [[https://github.com/joaotavora/eglot][Eglot]] in =org-src-mode= Python buffers. @@ -3747,8 +3746,6 @@ listings set up [[https://github.com/joaotavora/eglot][Eglot]]: (keymap-set eglot-mode-map "C-c n" 'flymake-goto-next-error) (keymap-set eglot-mode-map "C-c p" 'flymake-goto-prev-error) (keymap-set eglot-mode-map "C-c r" 'eglot-rename)) - -(add-hook 'python-mode-hook #'eglot-ensure) #+end_src #+caption: Setup ~oglot~ for ~python-mode~.