diff options
author | Martin Polden <mpolden@mpolden.no> | 2020-02-02 18:34:40 +0100 |
---|---|---|
committer | Martin Polden <mpolden@mpolden.no> | 2020-02-02 18:34:40 +0100 |
commit | 8989b629b13520ee9772c87069153d7d55696025 (patch) | |
tree | 3a7407d43f5c0fc292e7e1794ec5d031c3cc131a | |
parent | d25b093c8d1700bfdf712cce48ab71217161cfda (diff) |
Change formatting keybinding
-rw-r--r-- | lisp/init-eglot.el | 4 | ||||
-rw-r--r-- | lisp/init-javascript.el | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/lisp/init-eglot.el b/lisp/init-eglot.el index 91c2c3b..6146bf6 100644 --- a/lisp/init-eglot.el +++ b/lisp/init-eglot.el @@ -8,8 +8,8 @@ :bind (:map eglot-mode-map ;; C-c r renames identifier ("C-c r" . eglot-rename) - ;; C-c p formats buffer - ("C-c p" . eglot-format)) + ;; C-c f formats buffer + ("C-c f" . eglot-format)) :config ;; disable imenu integration as it's currently unsupported with gopls ;; https://github.com/joaotavora/eglot/pull/303 diff --git a/lisp/init-javascript.el b/lisp/init-javascript.el index 4d18a70..6a61a91 100644 --- a/lisp/init-javascript.el +++ b/lisp/init-javascript.el @@ -10,7 +10,7 @@ ("\\.\\(json\\|jshintrc\\)\\'" . js-mode) :bind (:map js-mode-map - ;; C-c p runs formats json with jq - ("C-c p" . json-pretty-print-buffer))) + ;; C-c f formats json + ("C-c f" . json-pretty-print-buffer))) (provide 'init-javascript) |