Add osm usage example and explain how to bookmark osm-mode buffers
This commit is contained in:
parent
92999318bf
commit
71a1ac3fb7
16
README.org
16
README.org
@ -6999,11 +6999,27 @@ application/pdf; emacsclient %s
|
|||||||
|
|
||||||
[[https://github.com/minad/osm#readme][Open Street Map]] is a tile-based map viewer with a responsive movable and
|
[[https://github.com/minad/osm#readme][Open Street Map]] is a tile-based map viewer with a responsive movable and
|
||||||
zoomable display and with a list of multiple preconfigured tile servers.
|
zoomable display and with a list of multiple preconfigured tile servers.
|
||||||
|
Listing [[lst:ensure-osm-installation]] ensures the installation of ~osm~ and
|
||||||
|
listing [[lst:using-osm-example]] is a minimal example of how to use ~osm~. Inside
|
||||||
|
~osm-mode~ buffers, the command src_emacs-lisp{(osm-bookmark-set)} is bound to
|
||||||
|
{{{kbd(C-x r b)}}} allowing to bookmark such buffers. Outside ~osm-mode~
|
||||||
|
buffers, the command src_emacs-lisp{(call-interactively 'consult-bookmark)} is
|
||||||
|
bound to {{{kbd(C-x r b)}}}.
|
||||||
|
|
||||||
|
#+caption[Ensure "osm" installation]:
|
||||||
|
#+caption: Ensure ~osm~ installation.
|
||||||
|
#+name: lst:ensure-osm-installation
|
||||||
#+begin_src emacs-lisp -n
|
#+begin_src emacs-lisp -n
|
||||||
(ensure-package-installation 'osm)
|
(ensure-package-installation 'osm)
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
#+caption[Using "osm" example]:
|
||||||
|
#+caption: Using ~osm~ example.
|
||||||
|
#+name: lst:using-osm-example
|
||||||
|
#+begin_src emacs-lisp -n :tangle no
|
||||||
|
(osm "Tower of London")
|
||||||
|
#+end_src
|
||||||
|
|
||||||
*** [[https://github.com/pashky/restclient.el#readme][Restclient]]
|
*** [[https://github.com/pashky/restclient.el#readme][Restclient]]
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:CUSTOM_ID: sec:restclient
|
:CUSTOM_ID: sec:restclient
|
||||||
|
Loading…
Reference in New Issue
Block a user