summaryrefslogtreecommitdiffstats
path: root/mode-icons.el
diff options
context:
space:
mode:
authorGravatar Tom Willemsen2012-11-10 23:17:42 +0100
committerGravatar Tom Willemsen2012-11-10 23:17:42 +0100
commit38f80a3890ca335f6cdb1dbe9ba5a21ebe655a1c (patch)
tree12907e44f821b2e384525331f27266179386c949 /mode-icons.el
parent1f62fb182c798cb29856936693f674bb7841c43b (diff)
downloadmode-icons-38f80a3890ca335f6cdb1dbe9ba5a21ebe655a1c.tar.gz
mode-icons-38f80a3890ca335f6cdb1dbe9ba5a21ebe655a1c.zip
Add icons and load them from here
Diffstat (limited to 'mode-icons.el')
-rw-r--r--mode-icons.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/mode-icons.el b/mode-icons.el
index 78d2e15..4f36518 100644
--- a/mode-icons.el
+++ b/mode-icons.el
@@ -24,8 +24,12 @@
;;; Code:
+(defconst mode-icons--load-file-name load-file-name
+ "Where mode-icons was loaded from.")
+
(defun mode-icons-get-icon-file (name)
- (concat user-emacs-directory "/icons/" name))
+ (concat (file-name-directory mode-icons--load-file-name)
+ "/icons/" name))
(defvar mode-icons
`(("Emacs-Lisp" . (image :type xpm