summary refs log tree commit diff
path: root/modules/app/osm/config.el
diff options
context:
space:
mode:
Diffstat (limited to 'modules/app/osm/config.el')
-rw-r--r--modules/app/osm/config.el19
1 files changed, 19 insertions, 0 deletions
diff --git a/modules/app/osm/config.el b/modules/app/osm/config.el
new file mode 100644
index 0000000..68a59de
--- /dev/null
+++ b/modules/app/osm/config.el
@@ -0,0 +1,19 @@
+;;; app/osm/config.el -*- lexical-binding: t; -*-
+
+(use-package! osm
+  :bind (("C-c m h" . osm-home)
+         ("C-c m s" . osm-search)
+         ("C-c m v" . osm-server)
+         ("C-c m t" . osm-goto)
+         ("C-c m x" . osm-gpx-show)
+         ("C-c m j" . osm-bookmark-jump))
+
+  :config
+  (add-to-list 'osm-server-list '(thunderforest-cycle
+                                  :name "OpenCycleMap"
+                                  :description "Map for cyclists, provided by Thunderforest"
+                                  :url "https://%s.tile.thunderforest.com/cycle/%z/%x/%y.png?apikey=7c352c8ff1244dd8b732e349e0b0fe8d"))
+  (setq osm-copyright nil)
+  (setq osm-server 'thunderforest-cycle)
+  (setq osm-home '(52.372778 4.893611 14)) ; Amsterdam
+  (set-evil-initial-state! 'osm-mode 'emacs))