|
From: | Glenn Morris |
Subject: | Re: [Emacs-diffs] master f57c710: Use a named function for global minor mode turn-on argument |
Date: | Mon, 24 Jul 2017 12:56:06 -0400 |
User-agent: | Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) |
Stefan Monnier wrote: >> ;;;###autoload >> +(defun turn-on-display-line-numbers-mode () >> + "Turn on `display-line-numbers-mode'." >> + (unless (or (minibufferp) >> + ;; taken from linum.el >> + (and (daemonp) (null (frame-parameter nil 'client)))) >> + (display-line-numbers-mode))) > > Could you make it use the "display-line-numbers-" prefix? > > > Stefan "who'd also use a ยจ--" since it's unlikely to be useful > outside of the package" And then it doesn't need to be autoloaded.
[Prev in Thread] | Current Thread | [Next in Thread] |