aboutsummaryrefslogtreecommitdiffstats
path: root/mode-icons.el
diff options
context:
space:
mode:
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