aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2020-10-09 14:54:44 +0000
committerAlyssa Ross <hi@alyssa.is>2020-10-09 14:54:44 +0000
commitff6c3e1cf9ee440de9701301d8b475d74e2d1bf3 (patch)
treef84c4cba719343f07dc77e9f34d7fee2c6c065fc
parent983975c13aba34e5800ac5e645cf6c3a35cfaacf (diff)
downloadnixlib-ff6c3e1cf9ee440de9701301d8b475d74e2d1bf3.tar
nixlib-ff6c3e1cf9ee440de9701301d8b475d74e2d1bf3.tar.gz
nixlib-ff6c3e1cf9ee440de9701301d8b475d74e2d1bf3.tar.bz2
nixlib-ff6c3e1cf9ee440de9701301d8b475d74e2d1bf3.tar.lz
nixlib-ff6c3e1cf9ee440de9701301d8b475d74e2d1bf3.tar.xz
nixlib-ff6c3e1cf9ee440de9701301d8b475d74e2d1bf3.tar.zst
nixlib-ff6c3e1cf9ee440de9701301d8b475d74e2d1bf3.zip
modules/emacs: don't hardcode home directory
-rw-r--r--modules/workstation/emacs/init.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/workstation/emacs/init.el b/modules/workstation/emacs/init.el
index 507fb04b4a3..d15b2516817 100644
--- a/modules/workstation/emacs/init.el
+++ b/modules/workstation/emacs/init.el
@@ -49,7 +49,8 @@
;;; Magit ;;;
(setq magit-delete-by-moving-to-trash delete-by-moving-to-trash)
-(setq magit-repository-directories '(("/home/src" . 1)))
+(setq magit-repository-directories
+ `((,(expand-file-name "~/src") . 1)))
(global-set-key (kbd "C-x g") 'magit-status)
(global-set-key (kbd "C-x M-g") 'magit-dispatch)