emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Adding olivetti to GNU ELPA


From: Stephen Leake
Subject: Re: Adding olivetti to GNU ELPA
Date: Wed, 08 May 2019 07:45:04 -0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (windows-nt)

"Paul W. Rankin" <address@hidden> writes:

> I *think* what is needed is a way to apply the hooks contingent on
> emacs-major-version <= 24 and <= 25 or 26(?) and <= 27.

you can use the variables emacs-version (a string), emacs-major-version
(an integer), emacs-minor-version (an integer).

Something like:

(cl-ecase emacs-major-version
(23
    (add-hook ...)
    )

(24
    (add-hook ...)

...

)


-- 
-- Stephe



reply via email to

[Prev in Thread] Current Thread [Next in Thread]