Variable: term-file-prefix
term-file-prefix is a customizable variable defined in faces.el.gz.
Value
"term/"
Documentation
If non-nil, Emacs startup performs terminal-specific initialization.
It does this by: (load (concat term-file-prefix (getenv "TERM")))
You may set this variable to nil in your init file if you do not wish the terminal-initialization file to be loaded.
Source Code
;; Defined in /usr/src/emacs/lisp/faces.el.gz
;;; faces.el --- Lisp faces -*- lexical-binding: t -*-
;; Copyright (C) 1992-2025 Free Software Foundation, Inc.
;; Maintainer: emacs-devel@gnu.org
;; Keywords: internal
;; Package: emacs
;; This file is part of GNU Emacs.
;; GNU Emacs is free software: you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
;; (at your option) any later version.
;; GNU Emacs is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;; GNU General Public License for more details.
;; You should have received a copy of the GNU General Public License
;; along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>.
;;; Commentary:
;;; Code:
(defcustom term-file-prefix "term/"
"If non-nil, Emacs startup performs terminal-specific initialization.
It does this by: (load (concat term-file-prefix (getenv \"TERM\")))
You may set this variable to nil in your init file if you do not wish
the terminal-initialization file to be loaded."
:type '(choice (const :tag "No terminal-specific initialization" nil)
(string :tag "Name of directory with term files"))
:group 'terminals)