mirror of
https://github.com/correl/doom-modeline.git
synced 2024-12-24 03:00:09 +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 'all-the-icons)
|
||||
(require 'dash)
|
||||
(require 'memoize)
|
||||
(require 'shrink-path)
|
||||
(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)))
|
||||
(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)
|
||||
"Propertized `buffer-file-name' showing directories relative to project's root only."
|
||||
(let ((root (doom-modeline-project-root))
|
||||
|
|
Loading…
Reference in a new issue