ui/posframe: less disruptive emacs version warnings; use constants
This commit is contained in:
parent
5eadfdc880
commit
988e70683e
3 changed files with 8 additions and 9 deletions
|
@ -1,9 +1,5 @@
|
|||
;;; ui/posframe/config.el -*- lexical-binding: t; -*-
|
||||
|
||||
(when (version< emacs-version "26")
|
||||
(error "The :ui posframe module requires Emacs 26+"))
|
||||
|
||||
|
||||
(def-package! posframe
|
||||
:defer t
|
||||
:config
|
||||
|
@ -13,6 +9,7 @@
|
|||
|
||||
(def-package! company-childframe
|
||||
:when (featurep! :completion company)
|
||||
:when EMACS26+
|
||||
:after company
|
||||
:config
|
||||
(setq company-childframe-notification nil)
|
||||
|
@ -23,6 +20,7 @@
|
|||
|
||||
(def-package! ivy-posframe
|
||||
:when (featurep! :completion ivy)
|
||||
:when EMACS26+
|
||||
:after ivy
|
||||
:preface
|
||||
;; This function searches the entire `obarray' just to populate
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
;; -*- lexical-binding: t; no-byte-compile: t; -*-
|
||||
;;; ui/posframe/doctor.el
|
||||
|
||||
(when (version< emacs-version "26")
|
||||
(unless EMACS26+
|
||||
(error! "This module doesn't work in Emacs %s (minimum: Emacs 26)" emacs-version))
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
;; -*- no-byte-compile: t; -*-
|
||||
;;; ui/posframe/packages.el
|
||||
|
||||
(when (featurep! :completion company)
|
||||
(when EMACS26+
|
||||
(when (featurep! :completion company)
|
||||
(package! company-childframe))
|
||||
(when (featurep! :completion ivy)
|
||||
(package! ivy-posframe))
|
||||
(when (featurep! :completion ivy)
|
||||
(package! ivy-posframe)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue