mirror of
https://github.com/correl/doom-modeline.git
synced 2024-11-27 19:19:53 +00:00
Fix #49: void-function file-local-name in spacemacs.
`file-local-name' is introduced in 25.2.2.
This commit is contained in:
parent
969d001290
commit
25fa66bb08
1 changed files with 13 additions and 0 deletions
|
@ -100,6 +100,19 @@ The icons may not be showed correctly on Windows. Disable to make it work.")
|
||||||
"Whether show the icon for major mode. It should respect `doom-modeline-icon'.")
|
"Whether show the icon for major mode. It should respect `doom-modeline-icon'.")
|
||||||
|
|
||||||
|
|
||||||
|
;;
|
||||||
|
;; compatibility
|
||||||
|
;;
|
||||||
|
|
||||||
|
;;`file-local-name' is introduced in 25.2.2.
|
||||||
|
(unless (fboundp 'file-local-name)
|
||||||
|
(defun file-local-name (file)
|
||||||
|
"Return the local name component of FILE.
|
||||||
|
It returns a file name which can be used directly as argument of
|
||||||
|
`process-file', `start-file-process', or `shell-command'."
|
||||||
|
(or (file-remote-p file 'localname) file)))
|
||||||
|
|
||||||
|
|
||||||
;;
|
;;
|
||||||
;; externals
|
;; externals
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in a new issue