[meson] Rebind lookup-doc-at-point to major mode specific binding

This commit is contained in:
Maximilian Wolff 2020-06-20 21:46:51 +02:00
parent 421fca3cea
commit a51397b3ce
No known key found for this signature in database
GPG key ID: 2DD07025BFDBD89A
2 changed files with 8 additions and 2 deletions

View file

@ -25,4 +25,4 @@ file.
| Key Binding | Description |
|-------------+------------------------------------------|
| ~F1~ | Lookup documentation for thing at point. |
| ~SPC m h h~ | Lookup documentation for thing at point. |

View file

@ -15,4 +15,10 @@
(defun meson/init-meson-mode ()
(use-package meson-mode
:defer t
:mode (("meson\\.build\\'" . meson-mode))))
:mode (("meson\\.build\\'" . meson-mode))
:config
(spacemacs/declare-prefix-for-mode 'meson-mode "mh" "help")
(spacemacs/set-leader-keys-for-major-mode 'meson-mode "hh" 'meson-lookup-doc-at-point)
;; Make sure that standard spacemacs f1 help bindings prevail
(define-key meson-mode-map [f1] nil)))