Compare commits
2 Commits
797c1f9076
...
eeedd42d48
Author | SHA1 | Date | |
---|---|---|---|
eeedd42d48 | |||
4e6598dc8e |
25
README.org
25
README.org
@ -3746,6 +3746,10 @@ 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 n" 'flymake-goto-next-error)
|
||||||
(keymap-set eglot-mode-map "C-c p" 'flymake-goto-prev-error)
|
(keymap-set eglot-mode-map "C-c p" 'flymake-goto-prev-error)
|
||||||
(keymap-set eglot-mode-map "C-c r" 'eglot-rename))
|
(keymap-set eglot-mode-map "C-c r" 'eglot-rename))
|
||||||
|
|
||||||
|
;; Does not make me happy:
|
||||||
|
;; (require 'eglot)
|
||||||
|
;; (add-hook 'python-mode-hook #'eglot-ensure)
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
#+caption: Setup ~oglot~ for ~python-mode~.
|
#+caption: Setup ~oglot~ for ~python-mode~.
|
||||||
@ -4426,25 +4430,19 @@ wiki entry as the [[info:elisp#Edebug][Edebug (info)]] manual explains.
|
|||||||
:CUSTOM_ID: sec:bug-reports
|
:CUSTOM_ID: sec:bug-reports
|
||||||
:END:
|
:END:
|
||||||
|
|
||||||
Listing [[lst:bug-reports]] ensures the installation of the [[info:debbugs#Top][Debbugs (info)]] extension
|
Listing [[lst:bug-reports]] sets up [[info:emacs#Bug Reference][Bug Reference Mode (info)]] to access the
|
||||||
package to access the [[https://debbugs.gnu.org/][GNU Bug Tracker]], sets up [[info:emacs#Bug Reference][Bug Reference Mode (info)]] to
|
[[https://lists.gnu.org/mailman/listinfo/bug-gnu-emacs][bug-gnu-emacs]] mailing list.
|
||||||
access the [[https://lists.gnu.org/mailman/listinfo/bug-gnu-emacs][bug-gnu-emacs]] mailing list, and enables [[info:emacs#Goto Address mode][Goto Address mode (info)]] to
|
|
||||||
open web links in source blocks.
|
|
||||||
|
|
||||||
#+caption[Setup reading existing bug reports]:
|
#+caption[Setup reading existing bug reports]:
|
||||||
#+caption: Setup reading existing bug reports.
|
#+caption: Setup reading existing bug reports.
|
||||||
#+name: lst:bug-reports
|
#+name: lst:bug-reports
|
||||||
#+begin_src emacs-lisp -n :results silent
|
#+begin_src emacs-lisp -n :results silent
|
||||||
(ensure-package-installation 'debbugs)
|
|
||||||
|
|
||||||
(defvar bug-reference-url-format
|
(defvar bug-reference-url-format
|
||||||
"https://debbugs.gnu.org/cgi/bugreport.cgi?bug=%s"
|
"https://debbugs.gnu.org/cgi/bugreport.cgi?bug=%s"
|
||||||
"Format to use `gnu-debbugs' URL.")
|
"Format to use `gnu-debbugs' URL.")
|
||||||
|
|
||||||
(add-to-list 'safe-local-eval-forms '(bug-reference-mode +1))
|
(add-to-list 'safe-local-eval-forms '(bug-reference-mode +1))
|
||||||
(put 'bug-reference-mode 'safe-local-variable 'booleanp)
|
(put 'bug-reference-mode 'safe-local-variable 'booleanp)
|
||||||
|
|
||||||
(add-hook 'org-mode-hook #'goto-address-mode)
|
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
*** [[http://yummymelon.com/devnull/writing-better-elisp-docstrings.html][Writing Better Elisp Docstrings]]
|
*** [[http://yummymelon.com/devnull/writing-better-elisp-docstrings.html][Writing Better Elisp Docstrings]]
|
||||||
@ -4894,11 +4892,12 @@ representation of src_emacs-lisp[:results none]{(describe-variable
|
|||||||
#+caption: projects tangling Python files to launch =eglot= automatically.
|
#+caption: projects tangling Python files to launch =eglot= automatically.
|
||||||
#+name: lst:eglot-directory-variables-for-python
|
#+name: lst:eglot-directory-variables-for-python
|
||||||
#+begin_src emacs-lisp -n :eval never :tangle dir-locals.el
|
#+begin_src emacs-lisp -n :eval never :tangle dir-locals.el
|
||||||
;; A .dir-locals.el file proposal in the root of any
|
;; A .dir-locals.el file proposal in the root of any Python project
|
||||||
;; Python project or Org-mode project tangling Python files
|
;; (fails) or Org-mode project tangling Python files (works) to launch
|
||||||
;; to launch eglot automatically.
|
;; eglot automatically.
|
||||||
;; Ensure to enable the pylsp_ruff plugin.
|
|
||||||
;; Ensure to uninstall the flake8, mccabe, and pycodestyle Python packages.
|
;; Ensure to enable the pylsp_ruff plugin and to uninstall the flake8,
|
||||||
|
;; mccabe, and pycodestyle Python packages.
|
||||||
((nil ;; nil, since Emacs filters out irrelevant mode names.
|
((nil ;; nil, since Emacs filters out irrelevant mode names.
|
||||||
. ((eglot-workspace-configuration
|
. ((eglot-workspace-configuration
|
||||||
. (:pylsp (:plugins
|
. (:pylsp (:plugins
|
||||||
|
Loading…
Reference in New Issue
Block a user