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; -*-
|
;;; ui/posframe/config.el -*- lexical-binding: t; -*-
|
||||||
|
|
||||||
(when (version< emacs-version "26")
|
|
||||||
(error "The :ui posframe module requires Emacs 26+"))
|
|
||||||
|
|
||||||
|
|
||||||
(def-package! posframe
|
(def-package! posframe
|
||||||
:defer t
|
:defer t
|
||||||
:config
|
:config
|
||||||
|
@ -13,6 +9,7 @@
|
||||||
|
|
||||||
(def-package! company-childframe
|
(def-package! company-childframe
|
||||||
:when (featurep! :completion company)
|
:when (featurep! :completion company)
|
||||||
|
:when EMACS26+
|
||||||
:after company
|
:after company
|
||||||
:config
|
:config
|
||||||
(setq company-childframe-notification nil)
|
(setq company-childframe-notification nil)
|
||||||
|
@ -23,6 +20,7 @@
|
||||||
|
|
||||||
(def-package! ivy-posframe
|
(def-package! ivy-posframe
|
||||||
:when (featurep! :completion ivy)
|
:when (featurep! :completion ivy)
|
||||||
|
:when EMACS26+
|
||||||
:after ivy
|
:after ivy
|
||||||
:preface
|
:preface
|
||||||
;; This function searches the entire `obarray' just to populate
|
;; This function searches the entire `obarray' just to populate
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
;; -*- lexical-binding: t; no-byte-compile: t; -*-
|
;; -*- lexical-binding: t; no-byte-compile: t; -*-
|
||||||
;;; ui/posframe/doctor.el
|
;;; 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))
|
(error! "This module doesn't work in Emacs %s (minimum: Emacs 26)" emacs-version))
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
;; -*- no-byte-compile: t; -*-
|
;; -*- no-byte-compile: t; -*-
|
||||||
;;; ui/posframe/packages.el
|
;;; ui/posframe/packages.el
|
||||||
|
|
||||||
(when (featurep! :completion company)
|
(when EMACS26+
|
||||||
(package! company-childframe))
|
(when (featurep! :completion company)
|
||||||
(when (featurep! :completion ivy)
|
(package! company-childframe))
|
||||||
(package! ivy-posframe))
|
(when (featurep! :completion ivy)
|
||||||
|
(package! ivy-posframe)))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue