Load ligature if display-graphic-p t

This commit is contained in:
Marcus Kammer 2024-12-03 08:45:28 +01:00
parent a8a924c41b
commit 37a1e6efc7

View file

@ -1873,6 +1873,7 @@ Uses `mk/hyperspec-dir-locations' to find the directory."
;; (append '((restclient . t)) org-babel-load-languages))
;; This assumes you've installed the package via MELPA.
(if (display-graphic-p)
(use-package ligature
:config
;; Enable the "www" ligature in every possible major mode
@ -1896,7 +1897,7 @@ Uses `mk/hyperspec-dir-locations' to find the directory."
"\\\\" "://" "++"))
;; Enables ligature checks globally in all buffers. You can also do it
;; per mode with `ligature-mode'.
(global-ligature-mode t))
(global-ligature-mode t)))
(let ((bundle-dir (expand-file-name "~/.emacs.d/bundle/")))
(when (file-directory-p bundle-dir)