This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-09-30
Channels
- # ai (3)
- # beginners (86)
- # boot (3)
- # chestnut (1)
- # cider (29)
- # clara (2)
- # cljs-dev (18)
- # cljsrn (1)
- # clojure (104)
- # clojure-greece (3)
- # clojure-losangeles (1)
- # clojure-spec (2)
- # clojure-uk (1)
- # clojurescript (5)
- # core-async (5)
- # css (3)
- # emacs (3)
- # figwheel (7)
- # fulcro (60)
- # lein-figwheel (3)
- # luminus (4)
- # off-topic (7)
- # portkey (14)
- # reagent (12)
- # rum (1)
- # shadow-cljs (9)
I have set lpr-switches
to include “-o lpi=14” to produce more lines of output per page. However, when I print with print-buffer
emacs itself paginates the text and inserts a header with date and buffer name and page number, and it seems to cut every page short. It doesn’t know I’m using a smaller font. What’s the setting for this?
ok, I got the answer from the source. By default, print-buffer
uses pr to paginate, and the switches for pr will be lpr-page-header-switches
. See https://github.com/emacs-mirror/emacs/blob/master/lisp/lpr.el#L168-L184
so therefore my init.el is now
(setq lpr-switches '("-o" "cpi=14" ; characters per inch
"-o" "lpi=8" ; lines per inch
"-o" "page-top=32" ; margins in points (1/72 inch)
"-o" "page-bottom=32"
"-o" "page-left=32"
"-o" "page-right=32"))
(setq lpr-page-header-switches '("-l" "80") ; lines per page