all repos — nixfiles @ a6486abd8b4f7e47884bf324ac7fcb7b76d4e260

System and user configuration, managed by nix and home-manager

Emacs: Monitor location and set lat/long (OSX)

Alan Pearce
commit

a6486abd8b4f7e47884bf324ac7fcb7b76d4e260

parent

f6c607e6a350eea8d5b7cfe20f9fe47317d03aee

1 file changed, 13 insertions(+), 0 deletions(-)

jump to
M tag-emacs/emacs.d/init.orgtag-emacs/emacs.d/init.org
@@ -841,6 +841,19 @@
** Time of Day #+BEGIN_SRC emacs-lisp + (req-package osx-location + :if (eq system-type 'darwin) + :config (progn + (add-hook 'osx-location-changed-hook + (lambda () + (setq calendar-latitude osx-location-latitude + calendar-longitude osx-location-longitude + calendar-location-name (format "%s, %s" osx-location-latitude osx-location-longitude)) + (rase-start))) + (osx-location-watch))) +#+END_SRC + +#+BEGIN_SRC emacs-lisp (req-package rase :config (progn (defun switch-themes (sun-event &optional first-run)