Skip to content

Commit

Permalink
feat(core): add helper function +font-installed-p
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Oct 26, 2023
1 parent c44d135 commit 0200750
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/me-loaddefs.el
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@ Examples:

;;; Generated autoloads from ../elisp/+emacs.el

(autoload '+font-installed-p "../elisp/+emacs" "\
Check if FONT-FAMILY is installed on the system.
(fn FONT-FAMILY)")
(autoload '+dir-locals-reload-for-this-buffer "../elisp/+emacs" "\
Reload directory-local for the current buffer" t)
(autoload '+dir-locals-reload-for-all-buffers-in-this-directory "../elisp/+emacs" "\
Expand Down
5 changes: 5 additions & 0 deletions elisp/+emacs.el
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@

;;; Code:

;;;###autoload
(defun +font-installed-p (font-family)
"Check if FONT-FAMILY is installed on the system."
(and (member font-family (font-family-list)) t))

;;;###autoload
(defun +dir-locals-reload-for-this-buffer ()
"Reload directory-local for the current buffer"
Expand Down

0 comments on commit 0200750

Please sign in to comment.