Emacs: Show Form Feed as Line 🚀

By Xah Lee. Date: .
emacs formfeed as line 2023-07-28 MmNP
emacs formfeed as line 2023-07-28 MmNP

Here's a command to display the Form Feed character as a line.

put this in your Emacs Init File:

(defun xah-show-formfeed-as-line ()
  "Display the formfeed ^L char as line.
URL `http://xahlee.info/emacs/emacs/emacs_show_form_feed_as_line.html'
Version: 2018-08-30 2023-07-29"
  (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 70 (make-glyph-code ?─ 'font-lock-comment-face))))
    (redraw-frame)))

2012-11-14 Thanks to Steve Purcell https://twitter.com/sanityinc for his page-break-lines.el package.

Emacs Form Feed