spacemacs/layers/+misc/nlinum/config.el
duianto f578e618a5
[nlinum] Show deprecation (Emacs 26.1+) warning on startup
The warning:
nlinum layer is deprecated for Emacs 26.1 and above
wasn't shown until SPC h SPC was pressed.

Because the variable: configuration-layer--used-layers
wasn't populated before the warning check occurred in
nlinum/packages.el.

The solution (suggested by syl20bnr) was to move the
check to a new file: nlinum/config.el.
2020-02-18 21:09:23 +01:00

15 lines
497 B
EmacsLisp

;;; config.el --- nlinum Layer packages File
;;
;; Copyright (c) 2012-2020 Sylvain Benner & Contributors
;;
;; Author: Sylvain Benner <sylvain.benner@gmail.com>
;; URL: https://github.com/syl20bnr/spacemacs
;;
;; This file is not part of GNU Emacs.
;;
;;; License: GPLv3
(when (configuration-layer/layer-usedp 'nlinum)
(spacemacs-buffer/warning (concat "nlinum layer is deprecated for Emacs 26.1 and above."
" You can safely remove it from your dotfile.")))