* Simplify the lisp code snippet of "Enable company-quickhelp in python only".
@ 2021-09-19 7:31 Hongyi Zhao
0 siblings, 0 replies; only message in thread
From: Hongyi Zhao @ 2021-09-19 7:31 UTC (permalink / raw)
To: help-gnu-emacs
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-09-19 7:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-09-19 7:31 Simplify the lisp code snippet of "Enable company-quickhelp in python only" Hongyi Zhao
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).