Fork me on GitHub
#emacs
<
2018-08-28
>
vemv16:08:32

Happy with this code, thought I'd share

(dolist (h `(kill-emacs-hook focus-out-hook))
  (add-hook h (lambda (&rest _)
                (shell-command-to-string "~/bin/fntoggle off"))))

(add-hook 'focus-in-hook (lambda (&rest _)
                           (shell-command-to-string "~/bin/fntoggle on")))
https://github.com/nelsonjchen/fntoggle That way I don't have to hit fn+<a fn key> neither in Emacs or in macOS