/usr/share/texmacs/TeXmacs/progs/init-buffer.scm is in texmacs-common 1:1.0.7.18-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;
;; MODULE : init-buffer.scm
;; DESCRIPTION : This file is executed when creating a new buffer
;; COPYRIGHT : (C) 1999 Joris van der Hoeven
;;
;; This software falls under the GNU general public license version 3 or later.
;; It comes WITHOUT ANY WARRANTY WHATSOEVER. For details, see the file LICENSE
;; in the root directory or <http://www.gnu.org/licenses/gpl-3.0.html>.
;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(when (not (buffer-has-name? (current-buffer)))
(use-modules (generic document-edit) (texmacs texmacs tm-print))
(init-style "generic")
(with lan (get-preference "language")
(if (!= lan "english") (init-language lan)))
(with psz (get-printer-paper-type)
(if (!= psz "a4") (init-page-type psz)))
(when (!= (get-preference "scripting language") "none")
(lazy-plugin-force)
(init-env "prog-scripts" (get-preference "scripting language")))
(buffer-pretend-saved (current-buffer)))
|