diff options
author | sterni <sternenseemann@systemli.org> | 2022-05-25T20·13+0200 |
---|---|---|
committer | clbot <clbot@tvl.fyi> | 2022-05-26T11·50+0000 |
commit | e4d87b1fd2229cbe40eeddd9fd2417a5064796f6 (patch) | |
tree | 6a09bc8f030f5d396725eef1c1be76e0197ca91c /users | |
parent | 462c85e2d801ed0523de4f96418e5ba29093a66a (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')
-rw-r--r-- | users/sterni/emacs/default.nix | 6 | ||||
-rw-r--r-- | users/sterni/emacs/init.el | 13 |
2 files changed, 19 insertions, 0 deletions
diff --git a/users/sterni/emacs/default.nix b/users/sterni/emacs/default.nix index 87f5c3002128..1200fefe4790 100644 --- a/users/sterni/emacs/default.nix +++ b/users/sterni/emacs/default.nix @@ -36,6 +36,12 @@ let epkgs.rust-mode epkgs.tvlPackages.tvl epkgs.urweb-mode + + # TODO(sterni): until org-tracker is part of depot + epkgs.ivy + epkgs.dash + epkgs.s + epkgs.jiralib2 ]); configDirectory = pkgs.symlinkJoin { 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) |