mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
ui/posframe: less disruptive emacs version warnings; use constants
This commit is contained in:
@ -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)
|
||||
(package! company-childframe))
|
||||
(when (featurep! :completion ivy)
|
||||
(package! ivy-posframe))
|
||||
(when EMACS26+
|
||||
(when (featurep! :completion company)
|
||||
(package! company-childframe))
|
||||
(when (featurep! :completion ivy)
|
||||
(package! ivy-posframe)))
|
||||
|
Reference in New Issue
Block a user