update of packages
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
(define-package "all-the-icons" "20220929.2303" "A library for inserting Developer icons"
|
||||
(define-package "all-the-icons" "20230909.2053" "A library for inserting Developer icons"
|
||||
'((emacs "24.3"))
|
||||
:commit "51bf77da1ebc3c199dfc11f54c0dce67559f5f40" :authors
|
||||
:commit "be9d5dcda9c892e8ca1535e288620eec075eb0be" :authors
|
||||
'(("Dominic Charlesworth" . "dgc336@gmail.com"))
|
||||
:maintainers
|
||||
'(("Dominic Charlesworth" . "dgc336@gmail.com"))
|
||||
:maintainer
|
||||
'("Dominic Charlesworth" . "dgc336@gmail.com")
|
||||
|
||||
@@ -210,6 +210,8 @@
|
||||
("rd" all-the-icons-fileicon "R" :face all-the-icons-lblue)
|
||||
("rdx" all-the-icons-fileicon "R" :face all-the-icons-lblue)
|
||||
("rsx" all-the-icons-fileicon "R" :face all-the-icons-lblue)
|
||||
("beancount" all-the-icons-faicon "credit-card" :face all-the-icons-lgreen)
|
||||
("ledger" all-the-icons-faicon "credit-card" :face all-the-icons-lgreen)
|
||||
("svelte" all-the-icons-fileicon "svelte" :v-adjust 0.0 :face all-the-icons-red)
|
||||
("gql" all-the-icons-fileicon "graphql" :face all-the-icons-dpink)
|
||||
("graphql" all-the-icons-fileicon "graphql" :face all-the-icons-dpink)
|
||||
@@ -247,6 +249,7 @@
|
||||
("sass" all-the-icons-alltheicon "sass" :face all-the-icons-dpink)
|
||||
("less" all-the-icons-alltheicon "less" :height 0.8 :face all-the-icons-dyellow)
|
||||
("postcss" all-the-icons-fileicon "postcss" :face all-the-icons-dred)
|
||||
("pcss" all-the-icons-fileicon "postcss" :face all-the-icons-dred)
|
||||
("sss" all-the-icons-fileicon "postcss" :face all-the-icons-dred)
|
||||
("styl" all-the-icons-alltheicon "stylus" :face all-the-icons-lgreen)
|
||||
("csv" all-the-icons-octicon "graph" :v-adjust 0.0 :face all-the-icons-dblue)
|
||||
@@ -277,11 +280,14 @@
|
||||
("react" all-the-icons-alltheicon "react" :height 1.1 :face all-the-icons-lblue)
|
||||
("ts" all-the-icons-fileicon "typescript" :height 1.0 :v-adjust -0.1 :face all-the-icons-blue-alt)
|
||||
("js" all-the-icons-alltheicon "javascript" :height 1.0 :v-adjust 0.0 :face all-the-icons-yellow)
|
||||
("mjs" all-the-icons-alltheicon "javascript" :height 1.0 :v-adjust 0.0 :face all-the-icons-yellow)
|
||||
("es" all-the-icons-alltheicon "javascript" :height 1.0 :v-adjust 0.0 :face all-the-icons-yellow)
|
||||
("jsx" all-the-icons-fileicon "jsx-2" :height 1.0 :v-adjust -0.1 :face all-the-icons-cyan-alt)
|
||||
("tsx" all-the-icons-fileicon "tsx" :height 1.0 :v-adjust -0.1 :face all-the-icons-cyan-alt)
|
||||
("njs" all-the-icons-alltheicon "nodejs" :height 1.2 :face all-the-icons-lgreen)
|
||||
("vue" all-the-icons-fileicon "vue" :face all-the-icons-lgreen)
|
||||
("wasm" all-the-icons-fileicon "wasm" :height 1.0 :face all-the-icons-purple-alt)
|
||||
("wat" all-the-icons-fileicon "wasm" :height 1.0 :face all-the-icons-purple-alt)
|
||||
|
||||
("sbt" all-the-icons-fileicon "sbt" :face all-the-icons-red)
|
||||
("scala" all-the-icons-alltheicon "scala" :face all-the-icons-red)
|
||||
@@ -380,12 +386,13 @@
|
||||
("mov" all-the-icons-faicon "film" :face all-the-icons-blue)
|
||||
("mp4" all-the-icons-faicon "film" :face all-the-icons-blue)
|
||||
("ogv" all-the-icons-faicon "film" :face all-the-icons-dblue)
|
||||
("mpg" all-the-icons-faicon "film" :face all-the-icons-blue)
|
||||
("mpeg" all-the-icons-faicon "film" :face all-the-icons-blue)
|
||||
("flv" all-the-icons-faicon "film" :face all-the-icons-blue)
|
||||
("ogv" all-the-icons-faicon "film" :face all-the-icons-dblue)
|
||||
("mpg" all-the-icons-faicon "film" :face all-the-icons-blue)
|
||||
("mpeg" all-the-icons-faicon "film" :face all-the-icons-blue)
|
||||
("flv" all-the-icons-faicon "film" :face all-the-icons-blue)
|
||||
("ogv" all-the-icons-faicon "film" :face all-the-icons-dblue)
|
||||
("mkv" all-the-icons-faicon "film" :face all-the-icons-blue)
|
||||
("webm" all-the-icons-faicon "film" :face all-the-icons-blue)
|
||||
("dav" all-the-icons-faicon "film" :face all-the-icons-blue)
|
||||
;; Fonts
|
||||
("ttf" all-the-icons-fileicon "font" :v-adjust 0.0 :face all-the-icons-dcyan)
|
||||
("woff" all-the-icons-fileicon "font" :v-adjust 0.0 :face all-the-icons-cyan)
|
||||
@@ -397,6 +404,8 @@
|
||||
("doc" all-the-icons-fileicon "word" :face all-the-icons-blue)
|
||||
("docx" all-the-icons-fileicon "word" :face all-the-icons-blue)
|
||||
("docm" all-the-icons-fileicon "word" :face all-the-icons-blue)
|
||||
("eml" all-the-icons-faicon "envelope" :face all-the-icons-blue)
|
||||
("msg" all-the-icons-faicon "envelope" :face all-the-icons-blue)
|
||||
("texi" all-the-icons-fileicon "tex" :face all-the-icons-lred)
|
||||
("tex" all-the-icons-fileicon "tex" :face all-the-icons-lred)
|
||||
("md" all-the-icons-octicon "markdown" :v-adjust 0.0 :face all-the-icons-lblue)
|
||||
@@ -405,7 +414,7 @@
|
||||
("pps" all-the-icons-fileicon "powerpoint" :face all-the-icons-orange)
|
||||
("ppt" all-the-icons-fileicon "powerpoint" :face all-the-icons-orange)
|
||||
("pptsx" all-the-icons-fileicon "powerpoint" :face all-the-icons-orange)
|
||||
("ppttx" all-the-icons-fileicon "powerpoint" :face all-the-icons-orange)
|
||||
("pptx" all-the-icons-fileicon "powerpoint" :face all-the-icons-orange)
|
||||
("knt" all-the-icons-fileicon "powerpoint" :face all-the-icons-cyan)
|
||||
("xlsx" all-the-icons-fileicon "excel" :face all-the-icons-dgreen)
|
||||
("xlsm" all-the-icons-fileicon "excel" :face all-the-icons-dgreen)
|
||||
@@ -577,13 +586,17 @@ for performance sake.")
|
||||
(erc-mode all-the-icons-faicon "commenting-o" :height 1.0 :v-adjust 0.0)
|
||||
(inferior-emacs-lisp-mode all-the-icons-fileicon "elisp" :height 1.0 :v-adjust -0.1 :face all-the-icons-lblue)
|
||||
(dired-mode all-the-icons-octicon "file-directory" :v-adjust 0.0)
|
||||
(wdired-mode all-the-icons-octicon "file-directory" :v-adjust 0.0 :face all-the-icons-dcyan)
|
||||
(lisp-interaction-mode all-the-icons-fileicon "lisp" :v-adjust -0.1 :face all-the-icons-orange)
|
||||
(sly-mrepl-mode all-the-icons-fileicon "clisp" :v-adjust -0.1 :face all-the-icons-orange)
|
||||
(slime-repl-mode all-the-icons-fileicon "clisp" :v-adjust -0.1 :face all-the-icons-orange)
|
||||
(org-mode all-the-icons-fileicon "org" :v-adjust 0.0 :face all-the-icons-lgreen)
|
||||
(typescript-mode all-the-icons-fileicon "typescript" :v-adjust -0.1 :face all-the-icons-blue-alt)
|
||||
(typescript-ts-mode all-the-icons-fileicon "typescript" :v-adjust -0.1 :face all-the-icons-blue-alt)
|
||||
(typescript-tsx-mode all-the-icons-fileicon "tsx" :v-adjust -0.1 :face all-the-icons-cyan-alt)
|
||||
(tsx-ts-mode all-the-icons-fileicon "tsx" :v-adjust -0.1 :face all-the-icons-cyan-alt)
|
||||
(js-mode all-the-icons-alltheicon "javascript" :v-adjust -0.1 :face all-the-icons-yellow)
|
||||
(js-ts-mode all-the-icons-alltheicon "javascript" :v-adjust -0.1 :face all-the-icons-yellow)
|
||||
(js-jsx-mode all-the-icons-alltheicon "javascript" :v-adjust -0.1 :face all-the-icons-yellow)
|
||||
(js2-mode all-the-icons-alltheicon "javascript" :v-adjust -0.1 :face all-the-icons-yellow)
|
||||
(js3-mode all-the-icons-alltheicon "javascript" :v-adjust -0.1 :face all-the-icons-yellow)
|
||||
@@ -602,6 +615,7 @@ for performance sake.")
|
||||
(ibuffer-mode all-the-icons-faicon "files-o" :v-adjust 0.0 :face all-the-icons-dsilver)
|
||||
(messages-buffer-mode all-the-icons-faicon "file-o" :v-adjust 0.0 :face all-the-icons-dsilver)
|
||||
(help-mode all-the-icons-faicon "info" :v-adjust -0.1 :face all-the-icons-purple)
|
||||
(helpful-mode all-the-icons-faicon "info" :v-adjust -0.1 :face all-the-icons-purple)
|
||||
(benchmark-init/tree-mode all-the-icons-octicon "dashboard" :v-adjust 0.0)
|
||||
(jenkins-mode all-the-icons-fileicon "jenkins" :face all-the-icons-blue)
|
||||
(magit-popup-mode all-the-icons-alltheicon "git" :face all-the-icons-red)
|
||||
@@ -612,6 +626,10 @@ for performance sake.")
|
||||
(mu4e-main-mode all-the-icons-octicon "mail" :v-adjust 0.0)
|
||||
(mu4e-view-mode all-the-icons-octicon "mail-read" :v-adjust 0.0)
|
||||
(sieve-mode all-the-icons-octicon "mail" :v-adjust 0.0)
|
||||
(gnus-group-mode all-the-icons-octicon "mail" :v-adjust 0.0)
|
||||
(gnus-summary-mode all-the-icons-octicon "mail" :v-adjust 0.0)
|
||||
(gnus-article-mode all-the-icons-octicon "mail-read" :v-adjust 0.0)
|
||||
(message-mode all-the-icons-octicon "pencil" :v-adjust 0.0)
|
||||
(package-menu-mode all-the-icons-faicon "archive" :height 1.0 :v-adjust 0.0 :face all-the-icons-silver)
|
||||
(paradox-menu-mode all-the-icons-faicon "archive" :height 1.0 :v-adjust 0.0 :face all-the-icons-silver)
|
||||
(Custom-mode all-the-icons-octicon "settings" :v-adjust -0.1)
|
||||
@@ -624,30 +642,39 @@ for performance sake.")
|
||||
(text-mode all-the-icons-octicon "file-text" :v-adjust 0.0 :face all-the-icons-cyan)
|
||||
(enh-ruby-mode all-the-icons-alltheicon "ruby-alt" :face all-the-icons-lred)
|
||||
(ruby-mode all-the-icons-alltheicon "ruby-alt" :face all-the-icons-lred)
|
||||
(ruby-ts-mode all-the-icons-alltheicon "ruby-alt" :face all-the-icons-lred)
|
||||
(inf-ruby-mode all-the-icons-alltheicon "ruby-alt" :face all-the-icons-red)
|
||||
(projectile-rails-compilation-mode all-the-icons-alltheicon "ruby-alt" :face all-the-icons-red)
|
||||
(rspec-compilation-mode all-the-icons-alltheicon "ruby-alt" :face all-the-icons-red)
|
||||
(rake-compilation-mode all-the-icons-alltheicon "ruby-alt" :face all-the-icons-red)
|
||||
(sh-mode all-the-icons-alltheicon "terminal" :face all-the-icons-purple)
|
||||
(bash-ts-mode all-the-icons-alltheicon "terminal" :face all-the-icons-purple)
|
||||
(shell-mode all-the-icons-alltheicon "terminal" :face all-the-icons-purple)
|
||||
(fish-mode all-the-icons-alltheicon "terminal" :face all-the-icons-lpink)
|
||||
(nginx-mode all-the-icons-fileicon "nginx" :height 0.9 :face all-the-icons-dgreen)
|
||||
(apache-mode all-the-icons-alltheicon "apache" :height 0.9 :face all-the-icons-dgreen)
|
||||
(makefile-mode all-the-icons-fileicon "gnu" :face all-the-icons-dorange)
|
||||
(cmake-mode all-the-icons-fileicon "cmake" :face all-the-icons-red)
|
||||
(cmake-ts-mode all-the-icons-fileicon "cmake" :face all-the-icons-red)
|
||||
(dockerfile-mode all-the-icons-fileicon "dockerfile" :face all-the-icons-blue)
|
||||
(dockerfile-ts-mode all-the-icons-fileicon "dockerfile" :face all-the-icons-blue)
|
||||
(docker-compose-mode all-the-icons-fileicon "dockerfile" :face all-the-icons-lblue)
|
||||
(nxml-mode all-the-icons-faicon "file-code-o" :height 0.95 :face all-the-icons-lorange)
|
||||
(json-mode all-the-icons-octicon "settings" :face all-the-icons-yellow)
|
||||
(json-ts-mode all-the-icons-octicon "settings" :face all-the-icons-yellow)
|
||||
(jsonian-mode all-the-icons-octicon "settings" :face all-the-icons-yellow)
|
||||
(yaml-mode all-the-icons-octicon "settings" :v-adjust 0.0 :face all-the-icons-dyellow)
|
||||
(yaml-ts-mode all-the-icons-octicon "settings" :v-adjust 0.0 :face all-the-icons-dyellow)
|
||||
(elisp-byte-code-mode all-the-icons-octicon "file-binary" :v-adjust 0.0 :face all-the-icons-dsilver)
|
||||
(archive-mode all-the-icons-octicon "file-zip" :v-adjust 0.0 :face all-the-icons-lmaroon)
|
||||
(elm-mode all-the-icons-fileicon "elm" :face all-the-icons-blue)
|
||||
(erlang-mode all-the-icons-alltheicon "erlang" :face all-the-icons-red :v-adjust -0.1 :height 0.9)
|
||||
(elixir-mode all-the-icons-alltheicon "elixir" :face all-the-icons-lorange :v-adjust -0.1 :height 0.9)
|
||||
(java-mode all-the-icons-alltheicon "java" :height 1.0 :face all-the-icons-purple)
|
||||
(java-ts-mode all-the-icons-alltheicon "java" :height 1.0 :face all-the-icons-purple)
|
||||
(go-mode all-the-icons-fileicon "go" :height 1.0 :face all-the-icons-blue)
|
||||
(go-ts-mode all-the-icons-fileicon "go" :height 1.0 :face all-the-icons-blue)
|
||||
(go-mod-ts-mode all-the-icons-fileicon "config-go" :height 1.0 :face all-the-icons-blue-alt)
|
||||
(go-dot-mod-mode all-the-icons-fileicon "config-go" :height 1.0 :face all-the-icons-blue-alt)
|
||||
(go-dot-work-mode all-the-icons-fileicon "config-go" :height 1.0 :face all-the-icons-blue-alt)
|
||||
(graphql-mode all-the-icons-fileicon "graphql" :face all-the-icons-dpink)
|
||||
@@ -658,22 +685,29 @@ for performance sake.")
|
||||
(php-mode all-the-icons-fileicon "php" :face all-the-icons-lsilver)
|
||||
(prolog-mode all-the-icons-alltheicon "prolog" :height 1.1 :face all-the-icons-lmaroon)
|
||||
(python-mode all-the-icons-alltheicon "python" :height 1.0 :face all-the-icons-dblue)
|
||||
(python-ts-mode all-the-icons-alltheicon "python" :height 1.0 :face all-the-icons-dblue)
|
||||
(inferior-python-mode all-the-icons-alltheicon "python" :height 1.0 :face all-the-icons-dblue)
|
||||
(racket-mode all-the-icons-fileicon "racket" :height 1.2 :face all-the-icons-red)
|
||||
(rust-mode all-the-icons-alltheicon "rust" :height 1.2 :face all-the-icons-maroon)
|
||||
(rustic-mode all-the-icons-alltheicon "rust" :height 1.2 :face all-the-icons-maroon)
|
||||
(rust-ts-mode all-the-icons-alltheicon "rust" :height 1.2 :face all-the-icons-maroon)
|
||||
(scala-mode all-the-icons-alltheicon "scala" :face all-the-icons-red)
|
||||
(scheme-mode all-the-icons-fileicon "scheme" :height 1.2 :face all-the-icons-red)
|
||||
(swift-mode all-the-icons-alltheicon "swift" :height 1.0 :v-adjust -0.1 :face all-the-icons-green)
|
||||
(svelte-mode all-the-icons-fileicon "svelte" :v-adjust 0.0 :face all-the-icons-red)
|
||||
(c-mode all-the-icons-alltheicon "c-line" :face all-the-icons-blue)
|
||||
(c-ts-mode all-the-icons-alltheicon "c-line" :face all-the-icons-blue)
|
||||
(c++-mode all-the-icons-alltheicon "cplusplus-line" :v-adjust -0.2 :face all-the-icons-blue)
|
||||
(c++-ts-mode all-the-icons-alltheicon "cplusplus-line" :v-adjust -0.2 :face all-the-icons-blue)
|
||||
(csharp-mode all-the-icons-alltheicon "csharp-line" :face all-the-icons-dblue)
|
||||
(csharp-ts-mode all-the-icons-alltheicon "csharp-line" :face all-the-icons-dblue)
|
||||
(clojure-mode all-the-icons-alltheicon "clojure" :height 1.0 :face all-the-icons-blue)
|
||||
(cider-repl-mode all-the-icons-alltheicon "clojure" :height 1.0 :face all-the-icons-green)
|
||||
(clojurescript-mode all-the-icons-fileicon "cljs" :height 1.0 :face all-the-icons-dblue)
|
||||
(coffee-mode all-the-icons-alltheicon "coffeescript" :height 1.0 :face all-the-icons-maroon)
|
||||
(lisp-mode all-the-icons-fileicon "lisp" :face all-the-icons-orange)
|
||||
(css-mode all-the-icons-alltheicon "css3" :face all-the-icons-yellow)
|
||||
(css-ts-mode all-the-icons-alltheicon "css3" :face all-the-icons-yellow)
|
||||
(scss-mode all-the-icons-alltheicon "sass" :face all-the-icons-pink)
|
||||
(sass-mode all-the-icons-alltheicon "sass" :face all-the-icons-dpink)
|
||||
(less-css-mode all-the-icons-alltheicon "less" :height 0.8 :face all-the-icons-dyellow)
|
||||
@@ -684,6 +718,7 @@ for performance sake.")
|
||||
(literate-haskell-mode all-the-icons-alltheicon "haskell" :height 1.0 :face all-the-icons-red)
|
||||
(haml-mode all-the-icons-fileicon "haml" :face all-the-icons-lyellow)
|
||||
(html-mode all-the-icons-alltheicon "html5" :face all-the-icons-orange)
|
||||
(html-ts-mode all-the-icons-alltheicon "html5" :face all-the-icons-orange)
|
||||
(rhtml-mode all-the-icons-alltheicon "html5" :face all-the-icons-lred)
|
||||
(mustache-mode all-the-icons-fileicon "moustache" :face all-the-icons-green)
|
||||
(slim-mode all-the-icons-octicon "dashboard" :v-adjust 0.0 :face all-the-icons-yellow)
|
||||
@@ -703,6 +738,7 @@ for performance sake.")
|
||||
(vhdl-mode all-the-icons-fileicon "vhdl" :face all-the-icons-blue)
|
||||
(haskell-cabal-mode all-the-icons-fileicon "cabal" :face all-the-icons-lblue)
|
||||
(kotlin-mode all-the-icons-fileicon "kotlin" :face all-the-icons-orange)
|
||||
(kotlin-ts-mode all-the-icons-fileicon "kotlin" :face all-the-icons-orange)
|
||||
(nim-mode all-the-icons-fileicon "nimrod" :face all-the-icons-yellow)
|
||||
(sql-mode all-the-icons-octicon "database" :face all-the-icons-silver)
|
||||
(lua-mode all-the-icons-fileicon "lua" :face all-the-icons-dblue)
|
||||
@@ -722,15 +758,26 @@ for performance sake.")
|
||||
(hy-mode all-the-icons-fileicon "hy" :face all-the-icons-blue)
|
||||
(glsl-mode all-the-icons-fileicon "vertex-shader" :face all-the-icons-green)
|
||||
(zig-mode all-the-icons-fileicon "zig" :face all-the-icons-orange)
|
||||
(exwm-mode all-the-icons-octicon "browser" :v-adjust 0.2 :face all-the-icons-purple)
|
||||
(beancount-mode all-the-icons-faicon "credit-card" :face all-the-icons-lgreen)
|
||||
(ledger-mode all-the-icons-faicon "credit-card" :face all-the-icons-lgreen)
|
||||
(odin-mode all-the-icons-fileicon "odin" :height 1.1 :face all-the-icons-lblue)
|
||||
(pdf-view-mode all-the-icons-octicon "file-pdf" :v-adjust 0.0 :face all-the-icons-dred)
|
||||
(spacemacs-buffer-mode all-the-icons-fileicon "elisp" :height 1.0 :v-adjust -0.1 :face all-the-icons-purple)
|
||||
(elfeed-search-mode all-the-icons-faicon "rss-square" :face all-the-icons-orange)
|
||||
(elfeed-show-mode all-the-icons-faicon "rss" :face all-the-icons-orange)
|
||||
(emms-browser-mode all-the-icons-faicon "music" :face all-the-icons-silver)
|
||||
(emms-lyrics-mode all-the-icons-faicon "music" :face all-the-icons-silver)
|
||||
(emms-show-all-mode all-the-icons-faicon "music" :face all-the-icons-silver)
|
||||
(emms-metaplaylist-mode all-the-icons-faicon "music" :face all-the-icons-silver)
|
||||
(emms-tag-editor-mode all-the-icons-faicon "music" :face all-the-icons-silver)
|
||||
(emms-playlist-mode all-the-icons-faicon "music" :face all-the-icons-silver)
|
||||
(lilypond-mode all-the-icons-faicon "music" :face all-the-icons-green)
|
||||
(magik-session-mode all-the-icons-alltheicon "terminal" :face all-the-icons-blue)
|
||||
(magik-cb-mode all-the-icons-faicon "book" :face all-the-icons-blue)
|
||||
(meson-mode all-the-icons-fileicon "meson" :face all-the-icons-purple)
|
||||
(man-common all-the-icons-fileicon "man-page" :face all-the-icons-blue)))
|
||||
(man-common all-the-icons-fileicon "man-page" :face all-the-icons-blue)
|
||||
(ess-r-mode all-the-icons-fileicon "R" :face all-the-icons-lblue)))
|
||||
|
||||
(defvar all-the-icons-url-alist
|
||||
'(
|
||||
@@ -843,8 +890,8 @@ for performance sake.")
|
||||
(eq major-mode auto-mode)))
|
||||
|
||||
(defun all-the-icons-match-to-alist (file alist)
|
||||
"Match FILE against an entry in ALIST using `string-match'."
|
||||
(cdr (cl-find-if (lambda (it) (string-match (car it) file)) alist)))
|
||||
"Match FILE against an entry in ALIST using `string-match-p'."
|
||||
(cdr (cl-find-if (lambda (it) (string-match-p (car it) file)) alist)))
|
||||
|
||||
(defun all-the-icons-dir-is-submodule (dir)
|
||||
"Checker whether or not DIR is a git submodule."
|
||||
@@ -916,20 +963,21 @@ inserting functions.
|
||||
|
||||
Note: You want chevron, please use `all-the-icons-icon-for-dir-with-chevron'."
|
||||
(let* ((dirname (file-name-base (directory-file-name dir)))
|
||||
(path (expand-file-name dir))
|
||||
(icon (all-the-icons-match-to-alist dirname all-the-icons-dir-icon-alist))
|
||||
(args (cdr icon)))
|
||||
(when arg-overrides (setq args (append `(,(car args)) arg-overrides (cdr args))))
|
||||
(cond
|
||||
((file-remote-p path)
|
||||
(apply #'all-the-icons-octicon "terminal" (cdr args)))
|
||||
((file-symlink-p path)
|
||||
(apply #'all-the-icons-octicon "file-symlink-directory" (cdr args)))
|
||||
((all-the-icons-dir-is-submodule path)
|
||||
(apply #'all-the-icons-octicon "file-submodule" (cdr args)))
|
||||
((file-exists-p (format "%s/.git" path))
|
||||
(apply #'all-the-icons-octicon "repo" (cdr args)))
|
||||
(t (apply (car icon) args)))))
|
||||
(if (file-remote-p dir) ;; don't call expand-file-name on a remote dir as this can make emacs hang
|
||||
(apply #'all-the-icons-octicon "terminal" (cdr args))
|
||||
(let
|
||||
((path (expand-file-name dir)))
|
||||
(cond
|
||||
((file-symlink-p path)
|
||||
(apply #'all-the-icons-octicon "file-symlink-directory" (cdr args)))
|
||||
((all-the-icons-dir-is-submodule path)
|
||||
(apply #'all-the-icons-octicon "file-submodule" (cdr args)))
|
||||
((file-exists-p (format "%s/.git" path))
|
||||
(apply #'all-the-icons-octicon "repo" (cdr args)))
|
||||
(t (apply (car icon) args)))))))
|
||||
|
||||
;;;###autoload
|
||||
(defun all-the-icons-icon-for-file (file &rest arg-overrides)
|
||||
@@ -1004,7 +1052,7 @@ inserting functions."
|
||||
(defun all-the-icons-icon-family-for-file (file)
|
||||
"Get the icons font family for FILE."
|
||||
(let* ((ext (file-name-extension file))
|
||||
(icon (or (all-the-icons-match-to-alist file all-the-icons-regexp-icon-alist)
|
||||
(icon (or (all-the-icons-match-to-alist file all-the-icons-regexp-icon-alist)
|
||||
(and ext
|
||||
(cdr (assoc (downcase ext)
|
||||
all-the-icons-extension-icon-alist)))
|
||||
@@ -1164,7 +1212,7 @@ pause for DURATION seconds between printing each character."
|
||||
(mapc
|
||||
(lambda (it)
|
||||
(insert (format "%s - %s\n" (funcall insert-f (car it) :height height) (car it)))
|
||||
(when duration (sit-for duration 0)))
|
||||
(when duration (sit-for duration)))
|
||||
data)))
|
||||
|
||||
(defmacro all-the-icons-define-icon (name alist family &optional font-name)
|
||||
@@ -1219,8 +1267,6 @@ FONT-NAME is the name of the .ttf file providing the font, defaults to FAMILY."
|
||||
(interactive "P")
|
||||
(all-the-icons-insert arg (quote ,name)))))
|
||||
|
||||
(define-obsolete-function-alias 'define-icon 'all-the-icons-define-icon "4.0.0")
|
||||
|
||||
(all-the-icons-define-icon alltheicon all-the-icons-data/alltheicons-alist "all-the-icons")
|
||||
(all-the-icons-define-icon fileicon all-the-icons-data/file-icon-alist "file-icons")
|
||||
(all-the-icons-define-icon faicon all-the-icons-data/fa-icon-alist "FontAwesome")
|
||||
|
||||
Reference in New Issue
Block a user