From bc60a7e45407548e2e250e80344a5ca68090bd9a Mon Sep 17 00:00:00 2001 From: William Carroll Date: Tue, 6 Sep 2022 10:03:38 -0700 Subject: feat(wpcarro/emacs): Set initial-buffer-choice per-host Work machines should prefer `/hadrian` and personal machines should prefer `/depot`. Change-Id: I03b605cc5ce233767146d83f14f368863897cf8b Reviewed-on: https://cl.tvl.fyi/c/depot/+/6368 Tested-by: BuildkiteCI Reviewed-by: wpcarro Autosubmit: wpcarro --- users/wpcarro/emacs/.emacs.d/wpc/wpc-ui.el | 4 ---- users/wpcarro/nixos/ava/ava.el | 2 ++ users/wpcarro/nixos/marcus/marcus.el | 3 +++ users/wpcarro/nixos/tarasco/tarasco.el | 2 ++ 4 files changed, 7 insertions(+), 4 deletions(-) (limited to 'users') diff --git a/users/wpcarro/emacs/.emacs.d/wpc/wpc-ui.el b/users/wpcarro/emacs/.emacs.d/wpc/wpc-ui.el index f4ed1dd9adf5..b39a82ad9f63 100644 --- a/users/wpcarro/emacs/.emacs.d/wpc/wpc-ui.el +++ b/users/wpcarro/emacs/.emacs.d/wpc/wpc-ui.el @@ -14,7 +14,6 @@ ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (require 'constants) -(require 'tvl) (require 'prelude) (require 'al) (require 'fonts) @@ -70,9 +69,6 @@ ;; disable toolbar (tool-bar-mode -1) -;; set default buffer for Emacs -(setq initial-buffer-choice tvl-depot-path) - ;; premium Emacs themes (use-package doom-themes :config diff --git a/users/wpcarro/nixos/ava/ava.el b/users/wpcarro/nixos/ava/ava.el index 3f2b302f8c3c..9c4385cbed21 100644 --- a/users/wpcarro/nixos/ava/ava.el +++ b/users/wpcarro/nixos/ava/ava.el @@ -15,6 +15,8 @@ :path (f-join tvl-depot-path "/hadrian") :kbd "h")) +(setq initial-buffer-choice "/hadrian") + (add-to-list 'ssh-hosts "wpcarro@tarasco") (display-register primary diff --git a/users/wpcarro/nixos/marcus/marcus.el b/users/wpcarro/nixos/marcus/marcus.el index 94dd164a1237..90c04f7ff31a 100644 --- a/users/wpcarro/nixos/marcus/marcus.el +++ b/users/wpcarro/nixos/marcus/marcus.el @@ -2,6 +2,7 @@ ;; Dependencies ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +(require 'tvl) (require 'display) (require 'window-manager) @@ -20,6 +21,8 @@ (display-arrangement primary :displays (laptop)) +(setq initial-buffer-choice tvl-depot-path) + (setq window-manager-named-workspaces (list (make-window-manager-named-workspace :label "Web Browsing" diff --git a/users/wpcarro/nixos/tarasco/tarasco.el b/users/wpcarro/nixos/tarasco/tarasco.el index bd2528fd8d55..fc90b95e1d54 100644 --- a/users/wpcarro/nixos/tarasco/tarasco.el +++ b/users/wpcarro/nixos/tarasco/tarasco.el @@ -15,6 +15,8 @@ :path (f-join tvl-depot-path "/hadrian") :kbd "h")) +(setq initial-buffer-choice "/hadrian") + (add-to-list 'ssh-hosts "wpcarro@ava") (display-register primary -- cgit 1.4.1