mirror of
https://github.com/willemml/dotfiles.nix.git
synced 2025-04-12 19:27:17 +00:00
emacs aliases, remove calibre from package requirements (no darwin version)
This commit is contained in:
parent
c9a9469ab6
commit
e698956215
2 changed files with 23 additions and 1 deletions
20
emacs.nix
20
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")
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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";
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue