Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
emacs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
DOSCH Philippe
emacs
Commits
b8308809
Commit
b8308809
authored
5 years ago
by
Philippe Dosch
Browse files
Options
Downloads
Patches
Plain Diff
Ajout de LSP
parent
7ab159b6
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.emacs
+33
-1
33 additions, 1 deletion
.emacs
with
33 additions
and
1 deletion
.emacs
+
33
−
1
View file @
b8308809
...
@@ -56,6 +56,7 @@
...
@@ -56,6 +56,7 @@
(append
(append
'(
'(
"/home/phil/.lisp/"
"/home/phil/.lisp/"
"/home/phil/.lisp/emacs-solargraph/"
)
)
load-path))
load-path))
...
@@ -444,7 +445,9 @@
...
@@ -444,7 +445,9 @@
;; :config
;; :config
;; (add-hook 'ruby-mode-hook 'ruby-refactor-mode-launch))
;; (add-hook 'ruby-mode-hook 'ruby-refactor-mode-launch))
;; Request : utilisé par solagraph (LSP/Ruby)
(use-package request
:ensure t)
;; Tout ce qui est relatif à company (completion at any point)
;; Tout ce qui est relatif à company (completion at any point)
(use-package company
(use-package company
...
@@ -497,6 +500,31 @@
...
@@ -497,6 +500,31 @@
;; (eval-after-load 'company
;; (eval-after-load 'company
;; '(push 'company-robe company-backends))
;; '(push 'company-robe company-backends))
;; Pour lsp (Language Server Protocol)
;; permettant de transformer emacs en IDE sur certains aspects
(use-package lsp-mode
:ensure t
:hook ((c-mode java-mode) . lsp)
:commands lsp)
;; optionally
(use-package lsp-ui
:ensure t
:commands lsp-ui-mode)
(use-package company-lsp
:ensure t
:commands company-lsp)
(use-package helm-lsp
:ensure t
:commands helm-lsp-workspace-symbol)
(use-package lsp-treemacs
:ensure t
:commands lsp-treemacs-errors-list)
;; Pour grammalecte
;; Pour grammalecte
(use-package flycheck-grammalecte
(use-package flycheck-grammalecte
:ensure t
:ensure t
...
@@ -966,6 +994,10 @@
...
@@ -966,6 +994,10 @@
:ensure t
:ensure t
:quelpa (dired+ :fetcher github :repo "emacsmirror/dired-plus"))
:quelpa (dired+ :fetcher github :repo "emacsmirror/dired-plus"))
;; ;; Support de Ruby avec lsp
;; (require 'solargraph)
;; (define-key ruby-mode-map (kbd "M-i") 'solargraph:complete)
;; Pour les snippets : yas-global-mode
;; Pour les snippets : yas-global-mode
(add-to-list 'load-path
(add-to-list 'load-path
"~/.emacs.d/plugins/yasnippet")
"~/.emacs.d/plugins/yasnippet")
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment