about summary refs log tree commit diff
path: root/users
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2022-09-06T17·03-0700
committerclbot <clbot@tvl.fyi>2022-09-06T17·29+0000
commitbc60a7e45407548e2e250e80344a5ca68090bd9a (patch)
treee74e204bcec554467735960cacca1b80bb150bb4 /users
parenta8c13a5ce1ee59c82b9138cc2073ab1b26187d00 (diff)
feat(wpcarro/emacs): Set initial-buffer-choice per-host r/4683
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 <wpcarro@gmail.com>
Autosubmit: wpcarro <wpcarro@gmail.com>
Diffstat (limited to 'users')
-rw-r--r--users/wpcarro/emacs/.emacs.d/wpc/wpc-ui.el4
-rw-r--r--users/wpcarro/nixos/ava/ava.el2
-rw-r--r--users/wpcarro/nixos/marcus/marcus.el3
-rw-r--r--users/wpcarro/nixos/tarasco/tarasco.el2
4 files changed, 7 insertions, 4 deletions
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