diff --git a/.emacs.d/lisp/python.el b/.emacs.d/lisp/python.el index ce9ed96..4c8f4c6 100644 --- a/.emacs.d/lisp/python.el +++ b/.emacs.d/lisp/python.el @@ -4707,8 +4707,8 @@ Arguments START and END narrow the buffer region to work on." (current-column)))) (^ '(- (1+ (current-indentation)))))) - (add-function :before-until (local 'eldoc-documentation-function) - #'python-eldoc-function) + (set (make-local-variable 'eldoc-documentation-function) + #'python-eldoc-function) (add-to-list 'hs-special-modes-alist `(python-mode "\\s-*\\(?:def\\|class\\)\\>" nil "#"