]> gitweb.michael.orlitzky.com - emacs.d.git/commitdiff
mode-hooks: disable eldoc within python-mode.
authorMichael Orlitzky <michael@orlitzky.com>
Thu, 25 Apr 2019 18:59:56 +0000 (14:59 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Thu, 25 Apr 2019 18:59:56 +0000 (14:59 -0400)
mode-hooks.el
mode-hooks/python-mode-hooks.el [new file with mode: 0644]

index 625b3113da00d56500349f7f9238928e9192e746..ff6876d30328841a8c6a7305a665136d432df399 100644 (file)
@@ -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 (file)
index 0000000..91b73f4
--- /dev/null
@@ -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))