General, minor refactor/reformatting
This commit is contained in:
parent
742687a51e
commit
f9b6f6746f
6 changed files with 25 additions and 26 deletions
|
@ -68,11 +68,11 @@ immediately runs it on the current candidate (ending the ivy session)."
|
|||
(after! yasnippet
|
||||
(add-to-list 'yas-prompt-functions #'+ivy-yas-prompt nil #'eq))
|
||||
|
||||
(map! :map ivy-mode-map
|
||||
[remap switch-to-buffer] #'+ivy/switch-buffer
|
||||
[remap switch-to-buffer-other-window] #'+ivy/switch-buffer-other-window
|
||||
[remap persp-switch-to-buffer] #'+ivy/switch-workspace-buffer
|
||||
[remap imenu-anywhere] #'ivy-imenu-anywhere)
|
||||
(define-key! ivy-mode-map
|
||||
[remap switch-to-buffer] #'+ivy/switch-buffer
|
||||
[remap switch-to-buffer-other-window] #'+ivy/switch-buffer-other-window
|
||||
[remap persp-switch-to-buffer] #'+ivy/switch-workspace-buffer
|
||||
[remap imenu-anywhere] #'ivy-imenu-anywhere)
|
||||
|
||||
(ivy-mode +1)
|
||||
|
||||
|
|
|
@ -8,7 +8,8 @@
|
|||
:mode ("\\.\\(?:rb\\|rake\\|rabl\\|ru\\|builder\\|gemspec\\|jbuilder\\|thor\\)\\'" . +ruby|init)
|
||||
:mode ("/\\(?:Berks\\|Cap\\|Gem\\|Guard\\|Pod\\|Puppet\\|Rake\\|Thor\\|Vagrant\\)file\\'" . +ruby|init)
|
||||
:preface
|
||||
(after! ruby-mode (require 'enh-ruby-mode))
|
||||
(after! ruby-mode
|
||||
(require 'enh-ruby-mode))
|
||||
(defun +ruby|init ()
|
||||
"Enable `enh-ruby-mode' if ruby is available, otherwise `ruby-mode'."
|
||||
(if (executable-find "ruby")
|
||||
|
|
|
@ -27,7 +27,7 @@ To get LSP working, you'll need two things:
|
|||
support, you'll have to configure your own (described in the Configuration
|
||||
section).
|
||||
|
||||
As of this writing, these Doom modules possess LSP support:
|
||||
As of this writing, this is the state of LSP support in Doom Emacs:
|
||||
|
||||
| Module | Major modes | Default language server |
|
||||
|------------------+---------------------------------------------------------+---------------------------------------------------------------|
|
||||
|
@ -53,8 +53,8 @@ This module provides no flags.
|
|||
+ [[https://github.com/tigersoldier/company-lsp][company-lsp]]*
|
||||
|
||||
* Prerequisites
|
||||
This module has no direct prerequisites, but to get LSP working, you'll need to
|
||||
install language servers.
|
||||
This module has no direct prerequisites, but major-modes require you to install
|
||||
language servers.
|
||||
|
||||
You'll find a table that lists available language servers and how to install
|
||||
them [[https://github.com/emacs-lsp/lsp-mode#supported-languages][in the lsp-mode project README]]. The documentation of the module for your
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue