Emacs: Show Form Feed as Line 🚀

By Xah Lee. Date: . Last updated: .
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 (codepoint 12) as line.
URL `http://xahlee.info/emacs/emacs/emacs_show_form_feed_as_line.html'
Created: 2018-08-30
Version: 2024-05-24"
  ;; 2016-10-11 thanks to Steve Purcell's page-break-lines.el
    (when (not buffer-display-table)
      (setq buffer-display-table (make-display-table)))
    (aset buffer-display-table 12
          (vconcat (make-list 70 (make-glyph-code ?─ 'font-lock-comment-face))))

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

Emacs, form feed