Remove superfluous `add-hook' form
This commit is contained in:
parent
6b1d0f17d7
commit
d9676f092b
@ -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~.
|
||||
|
Loading…
Reference in New Issue
Block a user