aboutsummaryrefslogtreecommitdiffstats
path: root/emacs/init.el
diff options
context:
space:
mode:
Diffstat (limited to 'emacs/init.el')
-rw-r--r--emacs/init.el12
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))