mirror of
https://github.com/correl/doom-modeline.git
synced 2024-11-23 19:19:50 +00:00
Remove memoize dependency.
This commit is contained in:
parent
ababcb464f
commit
553f1a8190
1 changed files with 0 additions and 12 deletions
|
@ -47,7 +47,6 @@
|
||||||
(require 'projectile)
|
(require 'projectile)
|
||||||
(require 'all-the-icons)
|
(require 'all-the-icons)
|
||||||
(require 'dash)
|
(require 'dash)
|
||||||
(require 'memoize)
|
|
||||||
(require 'shrink-path)
|
(require 'shrink-path)
|
||||||
(require 'eldoc-eval)
|
(require 'eldoc-eval)
|
||||||
|
|
||||||
|
@ -492,17 +491,6 @@ If TRUNCATE-TAIL is t also truncate the parent directory of the file."
|
||||||
(when (and (display-graphic-p) (not (eq system-type 'windows-nt)))
|
(when (and (display-graphic-p) (not (eq system-type 'windows-nt)))
|
||||||
(apply 'all-the-icons-material args)))
|
(apply 'all-the-icons-material args)))
|
||||||
|
|
||||||
(defmemoize doom-modeline-file-relative-name (filename directory)
|
|
||||||
(file-relative-name filename directory))
|
|
||||||
|
|
||||||
(defmemoize doom-modeline-abbreviate-file-name (file-name)
|
|
||||||
(abbreviate-file-name file-name))
|
|
||||||
|
|
||||||
(defmemoize doom-modeline-shrink-path-file-mixed (project-root file-name)
|
|
||||||
(shrink-path-file-mixed project-root
|
|
||||||
(file-name-directory file-name)
|
|
||||||
file-name))
|
|
||||||
|
|
||||||
(defun doom-modeline--buffer-file-name-relative (&optional include-project)
|
(defun doom-modeline--buffer-file-name-relative (&optional include-project)
|
||||||
"Propertized `buffer-file-name' showing directories relative to project's root only."
|
"Propertized `buffer-file-name' showing directories relative to project's root only."
|
||||||
(let ((root (doom-modeline-project-root))
|
(let ((root (doom-modeline-project-root))
|
||||||
|
|
Loading…
Reference in a new issue