commit a043616a378700f38e48db5dde7ff9ac5b779915
parent 5e1564bda92f27e8bb2076f22416879acefbb32a
Author: Jake Koroman <jakekoroman@gmail.com>
Date: Mon, 4 Mar 2024 09:20:19 -0500
finally branched out emacs into device specific configs
Diffstat:
5 files changed, 16 insertions(+), 9 deletions(-)
diff --git a/.emacs b/.emacs
@@ -11,8 +11,6 @@
(tool-bar-mode -1)
(scroll-bar-mode -1)
-(setq default-frame-alist '((font . "Iosevka:pixelsize=18")))
-;; (setq default-frame-alist '((font . "Liberation Mono-12")))
(defun my/disable-scroll-bars (frame)
(modify-frame-parameters frame
'((vertical-scroll-bars . nil)
@@ -511,12 +509,7 @@
(interactive "nTransparency Value 0 - 100 opaque: ")
(set-frame-parameter (selected-frame) 'alpha-background value))
-;; (split-window-horizontally)
-;; (toggle-frame-maximized)
-(set-default 'truncate-lines t)
-;; (list-colors-display) for a color picker
-(load-theme 'handmade t)
-(transparency 100)
+(load "device.el")
;; ;; Startup time
;; (defun efs/display-startup-time ()
diff --git a/.emacs.local/device.el b/.emacs.local/device.el
@@ -0,0 +1 @@
+/home/jake/dotfiles/device-specific/laptop/emacs.el
+\ No newline at end of file
diff --git a/README b/README
@@ -18,7 +18,7 @@ as well as seperate hardware configs located in the device-specific folder. the
will create the proper symlinks allowing me to easily edit my compositors config without
having to worry if something will break on different hardware.
-symlinks are also utilized for the i3status config.
+symlinks are also utilized for the i3status, and emacs configs.
the foot config is a bit more interesting as i dont want to maintain different configs for
different hardware. there is a master foot.ini named template.ini located at ./shared-configs/foot/
diff --git a/deploy b/deploy
@@ -2,6 +2,8 @@
# MUST BE RUN IN THE THIS DIRECTORY !!
+set -e
+
USAGE="Usage: ./deploy [laptop|desktop]"
if test -z "$1"; then
@@ -30,6 +32,7 @@ symlink_file() {
symlink_file "$(pwd)/device-specific/$hardware/hardware" "$(pwd)/.config/sway/hardware-specific-config"
symlink_file "$(pwd)/device-specific/$hardware/i3status" "$(pwd)/.config/i3status/config"
+symlink_file "$(pwd)/device-specific/$hardware/emacs.el" "$(pwd)/.emacs.local/device.el"
cat "$(pwd)/shared-configs/foot/template.ini" | sed "s/{FOOT_FONT}/$FOOT_FONT/g" > "$(pwd)/.config/foot/foot.ini"
diff --git a/device-specific/laptop/emacs.el b/device-specific/laptop/emacs.el
@@ -0,0 +1,9 @@
+(setq default-frame-alist '((font . "Iosevka:pixelsize=18")))
+;; (setq default-frame-alist '((font . "Liberation Mono-12")))
+
+;; (split-window-horizontally)
+;; (toggle-frame-maximized)
+(set-default 'truncate-lines t)
+;; (list-colors-display) for a color picker
+(load-theme 'handmade t)
+(transparency 100)