summaryrefslogtreecommitdiffstats
path: root/x11
diff options
context:
space:
mode:
authorGravatar Tom Willemse2015-09-29 17:02:02 +0200
committerGravatar Tom Willemse2015-09-29 17:02:02 +0200
commit7bbed8597298467fce199eefd31c4af9e8c74ae8 (patch)
treea69ceb6eb5475cf0d5417ac8cf32f1aec2e6780b /x11
parent39e3977cea7179516114d51795812d9840b7a229 (diff)
downloaddotfiles-7bbed8597298467fce199eefd31c4af9e8c74ae8.tar.gz
dotfiles-7bbed8597298467fce199eefd31c4af9e8c74ae8.zip
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
Diffstat (limited to 'x11')
-rw-r--r--x11/.Xdefaults9
-rw-r--r--x11/.config/Xresources/Emacs.conf31
2 files changed, 36 insertions, 4 deletions
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