Use cl-subseq instead of subseq

This commit is contained in:
Gergely Polonkai 2018-07-02 09:46:00 +02:00
parent 21c227eff4
commit 6d3e1f56fc

View File

@ -290,6 +290,7 @@
(list "^:Proj:python/" ":Proj:Py:")
t)
(sml/setup)
(require 'cl-lib)
(setq-default header-line-format
'(""
mode-line-mule-info
@ -312,7 +313,7 @@
;; Add sml/pre-id-separator after mode-line-front-space
(let* ((front-space-position (1+ (cl-position 'mode-line-front-space mode-line-format)))
(mode-line-rest (nthcdr front-space-position mode-line-format))
(mode-line-beg (subseq mode-line-format 0 front-space-position)))
(mode-line-beg (cl-subseq mode-line-format 0 front-space-position)))
(setq-default mode-line-format (nconc mode-line-beg
(list sml/pre-id-separator)
mode-line-rest))))