[meson] Rebind lookup-doc-at-point to major mode specific binding
This commit is contained in:
parent
421fca3cea
commit
a51397b3ce
2 changed files with 8 additions and 2 deletions
|
@ -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. |
|
||||
|
|
|
@ -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)))
|
||||
|
|
Reference in a new issue