Skip to content

Commit

Permalink
Apply domtronn#106
Browse files Browse the repository at this point in the history
  • Loading branch information
takaxp committed Feb 4, 2019
1 parent 52d1f2d commit 21aea54
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions all-the-icons.el
Original file line number Diff line number Diff line change
Expand Up @@ -808,13 +808,14 @@ FONT-NAME is the name of the .ttf file providing the font, defaults to FAMILY."
(family ,family))
(unless icon
(error (format "Unable to find icon with name `%s' in icon set `%s'" icon-name (quote ,name))))
(propertize icon
'face (if other-face
`(:family ,family :height ,height :inherit ,other-face)
`(:family ,family :height ,height))
'display `(raise ,v-adjust)
'rear-nonsticky t
'font-lock-ignore t)))
(let ((face (if other-face
`(:family ,family :height ,height :inherit ,other-face)
`(:family ,family :height ,height))))
(propertize icon
'face face ;so that this works without `font-lock-mode' enabled
'font-lock-face face ;so that `font-lock-mode' leaves this alone
'display `(raise ,v-adjust)
'rear-nonsticky t))))
(defun ,(all-the-icons--insert-function-name name) (&optional arg)
,(format "Insert a %s icon at point." family)
(interactive "P")
Expand Down

0 comments on commit 21aea54

Please sign in to comment.