Spacemacs混合线编号
如何在SpaceMac中为所有文件获取混合行号(相对行号,但当前行显示的是绝对行号,而不是0) 我尝试在用户配置中设置相对行号,但这似乎不起作用,并且也不知道如何在相对模式下替换0:Spacemacs混合线编号,emacs,spacemacs,Emacs,Spacemacs,如何在SpaceMac中为所有文件获取混合行号(相对行号,但当前行显示的是绝对行号,而不是0) 我尝试在用户配置中设置相对行号,但这似乎不起作用,并且也不知道如何在相对模式下替换0: (global-linum-mode) (setq-default dotspacemacs-line-numbers 'relative) dotspacemacs/init函数中的dotspacemacs行号变量已存在于.spacemacs中。如果不是这样,您可以在SPC f e D的帮助下将.spacema
(global-linum-mode)
(setq-default dotspacemacs-line-numbers 'relative)
dotspacemacs/init
函数中的dotspacemacs
行号变量已存在于.spacemacs
中。如果不是这样,您可以在SPC f e D
的帮助下将.spacemacs
更新到最后一个模板
将其值更改为相对值,如中所示:
;; If non nil line numbers are turned on in all `prog-mode' and `text-mode'
;; derivatives. If set to `relative', also turns on relative line numbers.
;; (default nil)
dotspacemacs-line-numbers 'relative
然后删除在dotspacemacs/user config
中添加的两行。您所需要的只是如上所述更改变量,它将负责为您应用更改:-)FYI是一个类似的问题(但使用而不是此dotspacemacs行号
功能)。