about summary refs log tree commit diff
path: root/emacs.d/wpc/packages
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2018-06-15T18·23-0400
committerWilliam Carroll <wpcarro@gmail.com>2018-07-19T16·00-0400
commit30cdf1e94183dd2ca761e2283dea7c756eb814c5 (patch)
treec2918168f2d2fd18523218367c8cff77282a4696 /emacs.d/wpc/packages
parent519be4dca1a5b7505aa3ad18f604b9db1f7a175b (diff)
Support current-project variable
DRYs up configuration...

This value is used to set:
  - my initial buffer
  - where <leader>-p jumps to
Diffstat (limited to 'emacs.d/wpc/packages')
-rw-r--r--emacs.d/wpc/packages/wpc-misc.el2
-rw-r--r--emacs.d/wpc/packages/wpc-ui.el2
2 files changed, 2 insertions, 2 deletions
diff --git a/emacs.d/wpc/packages/wpc-misc.el b/emacs.d/wpc/packages/wpc-misc.el
index fc65d7aa19b1..5958a47aa10f 100644
--- a/emacs.d/wpc/packages/wpc-misc.el
+++ b/emacs.d/wpc/packages/wpc-misc.el
@@ -34,7 +34,7 @@
 (set-register ?o '(file . "~/Dropbox/org/"))
 (set-register ?c '(file . "~/Dropbox/org/chains.org"))
 (set-register ?b '(file . "~/Dropbox/org/backlog.org"))
-(set-register ?p '(file . "~/urbint/grid-client"))
+(set-register ?p `(file . ,wpc/current-project))
 
 ;; persist history etc b/w Emacs sessions
 (setq desktop-save 'if-exists)
diff --git a/emacs.d/wpc/packages/wpc-ui.el b/emacs.d/wpc/packages/wpc-ui.el
index 3d3b577e5906..c8126356e4f7 100644
--- a/emacs.d/wpc/packages/wpc-ui.el
+++ b/emacs.d/wpc/packages/wpc-ui.el
@@ -54,7 +54,7 @@
 ;;(add-hook 'after-init-hook (lambda () (set-face-foreground 'linum "#da5468")))
 
 ;; set default buffer for Emacs
-(setq initial-buffer-choice "~/urbint/grid-client")
+(setq initial-buffer-choice wpc/current-project)
 
 ;; transparent Emacs
 (set-frame-parameter (selected-frame) 'alpha '(100 . 100))