about summary refs log tree commit diff
path: root/users/sterni/emacs/init.el
diff options
context:
space:
mode:
authorsterni <sternenseemann@systemli.org>2022-05-25T20·13+0200
committerclbot <clbot@tvl.fyi>2022-05-26T11·50+0000
commite4d87b1fd2229cbe40eeddd9fd2417a5064796f6 (patch)
tree6a09bc8f030f5d396725eef1c1be76e0197ca91c /users/sterni/emacs/init.el
parent462c85e2d801ed0523de4f96418e5ba29093a66a (diff)
feat(sterni/emacs): load org-tracker from mutable path in home dir r/4128
Packaging this seemed a little tricky due to some quirks of the code,
but it's best to solve that whenever it's actually in depot. For now I
break it often enough that it's useful to be able to edit its source
quickly.

Still missing some necessary configuration which I'll probably steal
from grfn next week or so.

Change-Id: I1300807f7b1bc39ddb9f792c2ee500f4dd72d002
Reviewed-on: https://cl.tvl.fyi/c/depot/+/5676
Autosubmit: sterni <sternenseemann@systemli.org>
Tested-by: BuildkiteCI
Reviewed-by: sterni <sternenseemann@systemli.org>
Diffstat (limited to 'users/sterni/emacs/init.el')
-rw-r--r--users/sterni/emacs/init.el13
1 files changed, 13 insertions, 0 deletions
diff --git a/users/sterni/emacs/init.el b/users/sterni/emacs/init.el
index 0828e4d77940..08c7aab7188c 100644
--- a/users/sterni/emacs/init.el
+++ b/users/sterni/emacs/init.el
@@ -107,6 +107,19 @@
         org-default-notes-file (concat org-folder "/inbox.org")
         initial-buffer-choice org-default-notes-file))
 
+;; load org-tracker and mutable config on work laptop
+(let ((org-tracker-src (concat (getenv "HOME")
+                               "/src/el/org-tracker")))
+  (when (file-exists-p org-tracker-src)
+    (add-to-list 'load-path org-tracker-src)
+
+    (use-package org-tracker
+      :hook (org-mode . org-tracker-mode)
+      :config
+      (let ((jira-config (concat (getenv "HOME")
+                                 "/.config/emacs-custom/pa-jira.el")))
+        (when (file-exists-p jira-config) (load jira-config))))))
+
 ;; ediff
 ; doesn't create new window for ediff controls which I always open accidentally
 (setq ediff-window-setup-function 'ediff-setup-windows-plain)