显示的问题 不知道是什么符号

图片 请问这种横线是什么情况啊,也不是下划线啊

看着像是 form feed 符号:Page break - Wikipedia

李杀写过一个函数可以把这个符号显示为横线:

(defun xah-show-formfeed-as-line ()
  "Display the formfeed ^L char as line. Version 2018-08-30"
  (interactive)
  ;; 2016-10-11 thanks to Steve Purcell's page-break-lines.el
  (progn
(when (not buffer-display-table)
  (setq buffer-display-table (make-display-table)))
(aset buffer-display-table ?\^L
      (vconcat (make-list 39 (make-glyph-code ?─ 'font-lock-comment-face))))
(redraw-frame)))


(add-hook 'org-mode-hook #'xah-show-formfeed-as-line)
(add-hook 'emacs-lisp-mode-hook #'xah-show-formfeed-as-line)

这里有答案

这个符号叫 “no break space", 对应的16进制值是 \x00A0, 你在emacs 里面可以这样输入它C-x 8 SPC

(set-face-attribute 'nobreak-space nil
                    :background nil
                    :underline nil)
1 个赞