~jack/nix-overlay

84f69591484a4f217549fbb129929dc2c34c6d83 — Jack Kelly 3 months ago c0d84f1
jack-emacs: Add org-roam
M README.md => README.md +5 -0
@@ 19,6 19,11 @@ want to e.g., symlink into `~/.config/nixpkgs/overlays`.
  build of GNU Emacs. Lots of dependencies, all configured and
  wired-in via the Nix store. Large.

  **Note:** This package includes some emacs packages that may not be
  in nixpkgs. You can work around this by adding the
  [`nix-community/emacs-overlay`](https://github.com/nix-community/emacs-overlay)
  overlay.

* [kevedit](https://github.com/cknave/kevedit): An advanced editor for
  ZZT.


M jack-emacs/default.el/org-config.el => jack-emacs/default.el/org-config.el +18 -0
@@ 8,6 8,7 @@

(setq org-fast-todo-selection t
      org-stuck-projects '("+PROJECT/-DONE" ("TODO"))
      org-startup-folded 'showall
      org-tags-exclude-from-inheritance '("PROJECT")
      org-todo-keywords
      '((sequence "TODO(t)" "STARTED(s)" "DELEGATED(g)" "WAITING(w)" "APPT(a)" "|"


@@ 33,3 34,20 @@
            (setq org-drill-add-random-noise-to-intervals-p t
                  org-drill-left-cloze-delimiter "<["
                  org-drill-right-cloze-delimiter "]>")))

(use-package org-roam
  :hook (after-init . org-roam-mode)

  :bind (:map org-roam-mode-map
              (("C-c r r" . org-roam)
               ("C-c r f" . org-roam-find-file)
               ("C-c r g" . org-roam-show-graph))
         :map org-mode-map
              (("C-c r i" . org-roam-insert))))

; https://github.com/org-roam/org-roam/issues/837
(advice-add 'lwarn :before-until
  (lambda (&rest args)
    (and
     (equal '(org-roam) (car args))
     (s-contains-p "Cannot find executable 'sqlite3'." (caddr args)))))

M jack-emacs/default.nix => jack-emacs/default.nix +6 -2
@@ 12,14 12,17 @@
, elm
, elm-format
, fd
, firefox
, ghc
, git
, graphviz
, hlint
, ormolu
, pythonPackages
, ripgrep
, shellcheck
, solargraph
, sqlite
, texinfo
}:
let


@@ 30,8 33,8 @@ let
  nix-environment = let
    rubocop = callPackage ./tools/rubocop {};
  in runCommand "nix-environment.el" {
    inherit aspell cmus discount elm fd ghc git hlint ormolu ripgrep rubocop
      shellcheck solargraph;
    inherit aspell cmus discount elm fd firefox ghc git graphviz hlint ormolu
      ripgrep rubocop shellcheck solargraph sqlite;
    inherit (pythonPackages) flake8 python pylint;

    # substituteAll dislikes hyphens


@@ 75,6 78,7 @@ let
    nix-mode
    org-drill
    org-plus-contrib
    org-roam
    epkgs.ormolu
    pkg-info
    projectile

M jack-emacs/nix-environment.el.in => jack-emacs/nix-environment.el.in +3 -0
@@ 13,6 13,7 @@
      elm-interactive-command '("@elm@/bin/elm" "repl")
      elm-package-command '("@elm@/bin/elm" "package")
      elm-reactor-command '("@elm@/bin/elm" "reactor")
      emacsql-sqlite3-executable "@sqlite@/bin/sqlite3"
      flycheck-elm-executable "@elm@/bin/elm"
      flycheck-haskell-hlint-executable "@hlint@/bin/hlint"
      flycheck-python-flake8-executable "@flake8@/bin/flake8"


@@ 25,6 26,8 @@
      magit-git-executable "@git@/bin/git"
      markdown-command "@discount@/bin/markdown"
      ormolu-process-path "@ormolu@/bin/ormolu"
      org-roam-graph-executable "@graphviz@/bin/dot"
      org-roam-graph-viewer "@firefox@/bin/firefox"
      projectile-generic-command "@fd@/bin/fd . -0 --type f --color=never"
      projectile-git-command "@git@/bin/git ls-files -zco --exclude-standard"
      vc-git-program "@git@/bin/git")