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

@ -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)