Skip to content

Commit

Permalink
Make working example for lsp-keymap-prefix and use-package
Browse files Browse the repository at this point in the history
- fixes #1532
  • Loading branch information
yyoncho committed Mar 23, 2020
1 parent 36799a7 commit 451f1c7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.org
Expand Up @@ -111,9 +111,10 @@
**** use-package
Replace ~(require 'lsp-mode)~ with the following if you use use-package.
#+BEGIN_SRC emacs-lisp
;; set prefix for lsp-command-keymap (few alternatives - "C-l", "C-c l")
(setq lsp-keymap-prefix "s-l")

(use-package lsp-mode
;; set prefix for lsp-command-keymap (few alternatives - "C-l", "C-c l")
:init (setq lsp-keymap-prefix "s-l")
:hook (;; replace XXX-mode with concrete major-mode(e. g. python-mode)
(XXX-mode . lsp)
;; if you want which-key integration
Expand Down Expand Up @@ -351,7 +352,7 @@
[[file:examples/which-key.png]]
*** Modeline errors
To see all error statistics in the modeline you can enable
~lsp-diagnostics-modeline-mode~. This is especially usefull for languages
~lsp-diagnostics-modeline-mode~. This is especially useful for languages
that compilation might be broken due to errors in other files(e. g. Java/Haskell).
#+BEGIN_SRC emacs-lisp
(with-eval-after-load 'lsp-mode
Expand Down

0 comments on commit 451f1c7

Please sign in to comment.