From e4d87b1fd2229cbe40eeddd9fd2417a5064796f6 Mon Sep 17 00:00:00 2001 From: sterni Date: Wed, 25 May 2022 22:13:07 +0200 Subject: feat(sterni/emacs): load org-tracker from mutable path in home dir 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 Tested-by: BuildkiteCI Reviewed-by: sterni --- users/sterni/emacs/default.nix | 6 ++++++ users/sterni/emacs/init.el | 13 +++++++++++++ 2 files changed, 19 insertions(+) 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) -- cgit 1.4.1