From 516bf83a0d45f0fb089077122b7d504674e7e3e7 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Thu, 25 Apr 2019 14:59:56 -0400 Subject: [PATCH] mode-hooks: disable eldoc within python-mode. --- mode-hooks.el | 1 + mode-hooks/python-mode-hooks.el | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 mode-hooks/python-mode-hooks.el diff --git a/mode-hooks.el b/mode-hooks.el index 625b311..ff6876d 100644 --- a/mode-hooks.el +++ b/mode-hooks.el @@ -7,6 +7,7 @@ (load-library "haskell-mode-hooks") (load-library "nxml-mode-hooks") (load-library "octave-mode-hooks") +(load-library "python-mode-hooks") (load-library "ruby-mode-hooks") (load-library "term-mode-hooks") (load-library "visual-basic-mode-hooks") diff --git a/mode-hooks/python-mode-hooks.el b/mode-hooks/python-mode-hooks.el new file mode 100644 index 0000000..91b73f4 --- /dev/null +++ b/mode-hooks/python-mode-hooks.el @@ -0,0 +1,9 @@ +(defun pym-hook() + ;; Turn off the live documentation that tries to process the whole + ;; file in a temporary location and usually fails, crapping all over + ;; my minibuffer in the process. + (eldoc-mode 0) +) + + +(add-hook 'python-mode-hook (function pym-hook)) -- 2.44.2