This commit is contained in:
Philipp Hochkamp 2023-01-25 07:49:02 +01:00
parent f2d5f4e7c9
commit 7e0ca28180
4 changed files with 41 additions and 41 deletions

View file

@ -11,7 +11,7 @@ in
home = "/Users/ragon";
};
environment.systemPackages = [
myEmacs
# myEmacs
];
homebrew = {
@ -64,7 +64,7 @@ in
'';
in
pkgs.substituteAll {
src = ./hammerspoon.lua; inherit myEmacs notmuchMails;
src = ./hammerspoon.lua; inherit notmuchMails;
};
home.file.".finicky.js".source = ./finicky.js;

View file

@ -352,12 +352,12 @@ local function notmuchTimerFunction()
end
notmuchMenubar = hs.menubar.new()
notmuchMenubar:setClickCallback(function(options)
if options.shift then
notmuchTimerFunction()
else
hs.task.new("@myEmacs@/bin/emacsclient", nil, function() return false end,
{ "-c", "-a", "", "--eval", "(=notmuch)" }):start()
end
end)
-- notmuchMenubar:setClickCallback(function(options)
-- if options.shift then
-- notmuchTimerFunction()
-- else
-- hs.task.new("@myEmacs@/bin/emacsclient", nil, function() return false end,
-- { "-c", "-a", "", "--eval", "(=notmuch)" }):start()
-- end
-- end)
notmuchTimer = hs.timer.doEvery(300, notmuchTimerFunction)