Use cl-subseq instead of subseq
This commit is contained in:
		
							
								
								
									
										3
									
								
								init.el
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								init.el
									
									
									
									
									
								
							@@ -290,6 +290,7 @@
 | 
				
			|||||||
               (list "^:Proj:python/" ":Proj:Py:")
 | 
					               (list "^:Proj:python/" ":Proj:Py:")
 | 
				
			||||||
               t)
 | 
					               t)
 | 
				
			||||||
  (sml/setup)
 | 
					  (sml/setup)
 | 
				
			||||||
 | 
					  (require 'cl-lib)
 | 
				
			||||||
  (setq-default header-line-format
 | 
					  (setq-default header-line-format
 | 
				
			||||||
                '(""
 | 
					                '(""
 | 
				
			||||||
                  mode-line-mule-info
 | 
					                  mode-line-mule-info
 | 
				
			||||||
@@ -312,7 +313,7 @@
 | 
				
			|||||||
  ;; Add sml/pre-id-separator after mode-line-front-space
 | 
					  ;; Add sml/pre-id-separator after mode-line-front-space
 | 
				
			||||||
  (let* ((front-space-position (1+ (cl-position 'mode-line-front-space mode-line-format)))
 | 
					  (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-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
 | 
					    (setq-default mode-line-format (nconc mode-line-beg
 | 
				
			||||||
                                          (list sml/pre-id-separator)
 | 
					                                          (list sml/pre-id-separator)
 | 
				
			||||||
                                          mode-line-rest))))
 | 
					                                          mode-line-rest))))
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user