如图,imenu-list缩进前面是空3个字符,我希望设成前面只空两个字符,这样好统一,除了python以外我在各种major-mode中设置的indent tab width
都是2
找着了
(defun imenu-list--depth-string (depth)
"Return a prefix string representing an entry's DEPTH."
(let ((indents (cl-loop for i from 1 to depth collect " ")))
(format "%s%s"
(mapconcat #'identity indents "")
(if indents " " ""))))
这个函数中collect " "
这里有两个空格,改成一个就好,不改el源文件看来是设置不了