summary refs log tree commit diff stats
path: root/tag-emacs
diff options
context:
space:
mode:
Diffstat (limited to 'tag-emacs')
-rw-r--r--tag-emacs/emacs.d/init.org13
1 files changed, 13 insertions, 0 deletions
diff --git a/tag-emacs/emacs.d/init.org b/tag-emacs/emacs.d/init.org
index 4dcbe05..b832b03 100644
--- a/tag-emacs/emacs.d/init.org
+++ b/tag-emacs/emacs.d/init.org
@@ -841,6 +841,19 @@ Sometimes I want to insert a date or time into a buffer.
 ** 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)