From 8ce715e40280eb658d99ada2b8a34ead7f5e1278 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Mon, 22 Aug 2022 14:04:23 +0200 Subject: ... --- accounts/gkleen@sif/default.nix | 16 ++++++++++++++++ accounts/gkleen@sif/emacs.el | 2 ++ 2 files changed, 18 insertions(+) (limited to 'accounts/gkleen@sif') diff --git a/accounts/gkleen@sif/default.nix b/accounts/gkleen@sif/default.nix index 615b783d..d3db91c8 100644 --- a/accounts/gkleen@sif/default.nix +++ b/accounts/gkleen@sif/default.nix @@ -396,6 +396,22 @@ in { }; }; + xdg.mimeApps = { + enable = true; + defaultApplications = let + filters = { + }; + filter = n: v: (filters.${n} or lib.id) (lib.filter (d: d != "emacs.desktop") v); + in lib.mapAttrs filter (cfg.lib.xdg.mimeAssociations [ + cfg.programs.zathura.package + pkgs.sxiv + cfg.programs.emacs.package + cfg.programs.firefox.package + ]) // { + "x-scheme-handler/mailto" = "thunderbird.desktop"; + }; + }; + fonts.fontconfig.enable = true; systemd.user = import ./systemd.nix inputs; diff --git a/accounts/gkleen@sif/emacs.el b/accounts/gkleen@sif/emacs.el index 48479532..b7567293 100644 --- a/accounts/gkleen@sif/emacs.el +++ b/accounts/gkleen@sif/emacs.el @@ -150,6 +150,8 @@ (setq auth-sources '()) +(setq ring-bell-function 'ignore) + (setq-default indicate-empty-lines t) (setq-default show-trailing-whitespace t) -- cgit v1.2.3