diff options
| author | Mattias Andrée <m@maandree.se> | 2026-09-27 18:55:51 +0200 |
|---|---|---|
| committer | Mattias Andrée <m@maandree.se> | 2026-09-27 18:55:51 +0200 |
| commit | 9b6222671fd2b89d16780ef640d3c29364191168 (patch) | |
| tree | 835512c9959dbd661e0b66e33863378c7c4e2b10 /emacs/init.el | |
| parent | Display randomart when ssh:ing (diff) | |
| download | dotfiles-9b6222671fd2b89d16780ef640d3c29364191168.tar.gz dotfiles-9b6222671fd2b89d16780ef640d3c29364191168.tar.bz2 dotfiles-9b6222671fd2b89d16780ef640d3c29364191168.tar.xz | |
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to 'emacs/init.el')
| -rw-r--r-- | emacs/init.el | 12 |
1 files changed, 12 insertions, 0 deletions
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)) |
