From: Hongyi Zhao <hongyi.zhao@gmail.com>
To: help-gnu-emacs <help-gnu-emacs@gnu.org>
Subject: Simplify the lisp code snippet of "Enable company-quickhelp in python only".
Date: Sun, 19 Sep 2021 15:31:56 +0800 [thread overview]
Message-ID: <CAGP6POJiCVHxgZf-0NFP8xZiViLRJWUM7k_9biBASjDtT_n2sw@mail.gmail.com> (raw)
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
reply other threads:[~2021-09-19 7:31 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAGP6POJiCVHxgZf-0NFP8xZiViLRJWUM7k_9biBASjDtT_n2sw@mail.gmail.com \
--to=hongyi.zhao@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).