From 585e6b4e76ddeb58f6a039cbcfa9f0cea15b9441 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Fri, 31 May 2019 07:49:43 -0700 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20use=20=E2=80=98window-system?= =?UTF-8?q?=E2=80=99,=20use=20=E2=80=98display-graphic-p=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Apparently ‘window-system’ has been deprecated as a boolean value and I forgot about ‘display-graphic-p’. --- oni-eshell.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/oni-eshell.el b/oni-eshell.el index 1293749..132403d 100644 --- a/oni-eshell.el +++ b/oni-eshell.el @@ -4,7 +4,7 @@ ;; Author: Tom Willemse ;; Keywords: local -;; Version: 20190531074826 +;; Version: 20190531074910 ;; Package-Requires: (eshell-fringe-status esh-autosuggest) ;; This program is free software; you can redistribute it and/or modify @@ -53,8 +53,8 @@ (add-hook 'eshell-mode-hook 'esh-autosuggest-mode) (add-hook 'eshell-mode-hook 'goto-address-mode) -(if (window-system) - (add-hook 'eshell-mode-hook 'eshell-fringe-status-mode)) +(when (display-graphic-p) + (add-hook 'eshell-mode-hook 'eshell-fringe-status-mode)) ;;;###autoload(with-eval-after-load 'eshell (require 'oni-eshell))