diff --git a/default.nix b/default.nix new file mode 100644 index 0000000..5128bd8 --- /dev/null +++ b/default.nix @@ -0,0 +1,15 @@ +with import { }; +let + t = terraform.withPlugins (p: [ + p.libvirt + p.local + p.null + p.random + p.shell + p.template + p.tls + ]); +in +mkShell { + buildInputs = [ gnumake ]; +} diff --git a/emacs.org b/emacs.org index 1bbc4cc..b5d78da 100644 --- a/emacs.org +++ b/emacs.org @@ -805,7 +805,7 @@ validate the agenda changes. ;; (interactive) ;; (progn ;; (setq url (read-string "url: ")) -;; (setq reffile (capture-date-file "~/src/org/ref/url")) +;; (setq reffile (capture-date-file "~/org/ref/url")) ;; (append-to-file ;; (format "#+TITLE: %s\n#+ROAM_KEY: %s\n\n\n* Content\n%s" ;; (org-web-tools--html-title url) url (mt/insert-url-as-org url)) @@ -858,10 +858,10 @@ validate the agenda changes. (shell . t) ))) :custom - (org-directory "~/src/org") + (org-directory "~/org") ;; Don't sort-lines ^^^ (org-agenda-span 'fortnight) - (org-archive-directory "~/src/org/attic") + (org-archive-directory "~/org/attic") (org-confirm-babel-evaluate nil) (org-default-notes-file (concat org-directory "/notes.org")) (org-fontify-done-headline t) @@ -873,23 +873,23 @@ validate the agenda changes. (org-src-strip-leading-and-trailing-blank-lines t) ;; Ref https://orgmode.org/manual/Template-elements.html for more detail. (org-agenda-files - (list "~/src/org" + (list "~/org" "~/src/git.mitchty.net/mitchty/dotfiles")) ;; "#+TITLE: %a\n#+ROAM_KEY: %U\n\n [[%U][%U]]\n" (org-capture-templates '( ;; TODO: make this crap work somehow ;; ("w" "website" - ;; entry (file (capture-date-file "~/src/org/ref/url" "org")) + ;; entry (file (capture-date-file "~/org/ref/url" "org")) ;; ;; "#+TITLE: %a\n#+ROAM_KEY: %U\n\n%? [[%U][%U]]\n" ;; "%?" ;; :prepend t :empty-lines 1) ;; ("u" "unsorted note" - ;; entry (file capture-date-file "~/src/org/unsorted" "org") + ;; entry (file capture-date-file "~/org/unsorted" "org") ;; "\n* %?\nRandom Note entered on %U\n %i\n %a\n" ;; :prepend t :empty-lines 1) ;; ("r" "ref url" - ;; entry (file capture-date-file "~/src/org/ref/url") + ;; entry (file capture-date-file "~/org/ref/url") ;; "\n* %?\nRandom Note entered on %U\n %i\n %a\n" ;; :prepend t :empty-lines 1) ("d" "deadline" @@ -931,25 +931,25 @@ Ref: Starting out simple..ish. -#+BEGIN_SRC emacs-lisp +#+BEGIN_SRC emacs-lisp :tangle no (use-package org-roam :after org :ensure t :hook after-init :custom - (org-roam-directory "~/src/org") - (org-roam-index-file "~/src/org/roam.org") + (org-roam-directory "~/org") + (org-roam-index-file "~/org/roam.org") (org-roam-tag-sources '(prop all-directories)) (org-roam-capture-templates '(("d" "default" plain (function org-roam--capture-get-point) "%?" - :file-name "~/src/org/${slug}" + :file-name "~/org/${slug}" :unnarrowed t :head "#+TITLE: ${title}\n"))) (org-roam-capture-ref-templates '(("r" "ref" plain (function org-roam-capture--get-point) "%?" - :file-name "~/src/org/ref/${slug}") + :file-name "~/org/ref/${slug}") :unnarrowed t :head "#+TITLE: ${title}\n#+ROAM_KEY: ${ref}\n- source :: ${ref}\n")) :bind