diff options
author | 2022-03-15 22:25:32 -0700 | |
---|---|---|
committer | 2022-03-15 22:31:10 -0700 | |
commit | cd01325d9ad20277a3ac7c964ef206a523fab645 (patch) | |
tree | 7500c31be43cf2a1931b9bd1c76be8debbd0ddfb /app/osm.el | |
parent | config(projectile): set automatic search paths (diff) | |
download | doom-emacs-cd01325d9ad20277a3ac7c964ef206a523fab645.tar.xz |
feat: add osm.el
Diffstat (limited to 'app/osm.el')
-rw-r--r-- | app/osm.el | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/app/osm.el b/app/osm.el new file mode 100644 index 0000000..ae21218 --- /dev/null +++ b/app/osm.el @@ -0,0 +1,23 @@ +;;; app/osm.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 '(37.7775 -122.416389 14)) ; San Francisco, CA + (set-evil-initial-state! 'osm-mode 'emacs) + + :init + (with-eval-after-load 'org + (require 'osm-ol))) |