diff --git a/emacs.nix b/emacs.nix index e068b74..2e98b1c 100644 --- a/emacs.nix +++ b/emacs.nix @@ -542,6 +542,26 @@ in { (advice-add #'org-babel-execute:python :before #'my/org-babel-execute:python-session) ''; }; + + org-ref = { + enable = true; + config = '' + (setq org-ref-insert-cite-function + (lambda () + (org-cite-insert nil))) + ''; + }; + + calibredb = { + enable = true; + extraPackages = [ pkgs.sqlite ]; + config = '' + (setq calibredb-root-dir "~/Documents/calibre-library") + (setq calibredb-db-dir (expand-file-name "metadata.db" calibredb-root-dir)) + (setq calibredb-library-alist '(("~/Documents/calibre-library"))) + (setq sql-sqlite-program "${pkgs.sqlite}/bin/sqlite3") + ''; + }; }; }; } diff --git a/programs.nix b/programs.nix index 29c6829..460a462 100644 --- a/programs.nix +++ b/programs.nix @@ -69,7 +69,9 @@ }; shellAliases = { em = "emacsclient -c"; - emt = "emacsclient -c -nw"; + emw = "emacsclient -c -nw"; + ew = "emacs -nw"; + e = "$EDITOR"; np = "nix-shell -p"; hms = "home-manager switch"; };