[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Simplify the lisp code snippet of "Enable company-quickhelp in python on
From: |
Hongyi Zhao |
Subject: |
Simplify the lisp code snippet of "Enable company-quickhelp in python only". |
Date: |
Sun, 19 Sep 2021 15:31:56 +0800 |
I saw the following lisp code snippet here [1]:
;; Enable company-quickhelp in python only
(defun company-quickhelp-in-python-only ()
(company-quickhelp-mode))
(setq company-quickhelp-in-python-hook 'company-quickhelp-in-python-only)
(add-hook 'python-mode-hook (lambda ()
(run-hooks 'company-quickhelp-in-python-hook)))
[1] https://www.mail-archive.com/ess-help@r-project.org/msg00600.html
It seems that the above code snippet a bit wordy and redundant, but I
still haven't any ideas/tricks to make it simpler/conciser. Any
hints/comments for achieving this aim will be greatly appreciated.
Regards
--
Assoc. Prof. Hongyi Zhao <hongyi.zhao@gmail.com>
Theory and Simulation of Materials
Hebei Vocational University of Technology and Engineering
No. 473, Quannan West Street, Xindu District, Xingtai, Hebei province
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Simplify the lisp code snippet of "Enable company-quickhelp in python only".,
Hongyi Zhao <=