From 9b6222671fd2b89d16780ef640d3c29364191168 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 27 Sep 2026 18:55:51 +0200 Subject: Misc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- emacs/init.el | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'emacs') diff --git a/emacs/init.el b/emacs/init.el index 432b772..ebaf0d7 100644 --- a/emacs/init.el +++ b/emacs/init.el @@ -1,3 +1,5 @@ +;;; -*- lexical-binding: t; -*- + ;; Added by Package.el. This must come before configurations of ;; installed packages. Don't delete this line. If you don't want it, ;; just comment it out by adding a semicolon to the start of the line. @@ -69,3 +71,13 @@ ((lambda () (dolist (file (directory-files (expand-file-name "~/.config/emacs/") t "^init-.*\\.el$")) (load-file file)))) + + +;; Disable Emacs overriding the terminal's background +(unless (display-graphic-p) + (set-face-attribute 'default nil :background "unspecified-bg") + (set-face-attribute 'default nil :foreground "unspecified-fg")) + +;; Disable Emacs take control over the terminal's mouse features +;; (This is important for copy and paste between Emacs and other applications) +(unless (display-graphic-p) (xterm-mouse-mode -1)) -- cgit v1.3.1