From 7bbed8597298467fce199eefd31c4af9e8c74ae8 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Tue, 29 Sep 2015 17:02:02 +0200 Subject: Add some Emacs settings These settings were inspired by this Emacs config: https://github.com/wasamasa/dotemacs/blob/master/init.org Some existed already, but this was an opportune time to follow the instructions on the r/unixporn wiki to split your Xresources and to use variables: https://www.reddit.com/r/unixporn/wiki/organizing_xresources --- x11/.Xdefaults | 9 +++++---- x11/.config/Xresources/Emacs.conf | 31 +++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+), 4 deletions(-) create mode 100644 x11/.config/Xresources/Emacs.conf diff --git a/x11/.Xdefaults b/x11/.Xdefaults index c62c55d..3f25989 100644 --- a/x11/.Xdefaults +++ b/x11/.Xdefaults @@ -1,3 +1,6 @@ +#define backgroundColor #111111 +#define foregroundColor #bfbfbf + urxvt.internalBorder: 0 urxvt.loginShell: true @@ -68,13 +71,11 @@ Xft.rgba: rgb Xft.hinting: true Xft.hintstyle: hintslight +#include ".config/Xresources/Emacs.conf" + ! Emacs.font: DejaVu Sans Mono:weight=medium:pixelsize=18 -Emacs.menuBar: off -Emacs.toolbar: off Emacs.useXIM: off -Emacs.background: #111113 Emacs.borderWidth: 0 -Emacs.font: Fantasque Sans Mono-13 Emacs.foreground: #eeeeec Emacs.internalBorder: 0 Emacs.paneFont: Fantasque Sans Mono-13 diff --git a/x11/.config/Xresources/Emacs.conf b/x11/.config/Xresources/Emacs.conf new file mode 100644 index 0000000..2ed650f --- /dev/null +++ b/x11/.config/Xresources/Emacs.conf @@ -0,0 +1,31 @@ +!! If I talk like Data in this file, that is because Xresources do not +!! allow all characters to appear in comments. + +!! All of these settings were inspired by the Emacs configuration of +!! Vasilij Schneidermann: +!! https://github.com/wasamasa/dotemacs/blob/master/init.org + +! These UI elements are useful when working with the mouse. I do not, +! so they are not all that useful to me. +Emacs.menuBar: off +Emacs.toolBar: off +Emacs.verticalScrollBars: off + +! Blinking cursors are just annoying. In fact, almost anything that +! blinks incessantly is rather annoying. +Emacs.cursorBlink: off + +! Switching colors from the default background to the one in my Emacs +! theme gives me a headache. It is much nicer to have my preferred +! color from the start. This color has been defined in my main +! .Xdefaults. +Emacs.background: backgroundColor + +! These settings do not match the ones in my Emacs theme, but they are +! closer to the ones in my SVG mode-line theme. +Emacs.mode-line.attributeForeground: foregroundColor +Emacs.mode-line.attributeBackground: backgroundColor +Emacs.mode-line.attributeBox: unspecified + +! My preferred font. +Emacs.font: Fantasque Sans Mono-13 -- cgit v1.2.3-54-g00ecf