Compare commits

...

4 Commits

Author SHA1 Message Date
tvdu29
f66479518c Update .myemacs 2019-11-02 00:15:05 +01:00
Tanguy MAZE
0c6d8aec0d change to flycheck 2019-11-01 22:53:30 +00:00
Tanguy Maze
77a7f0e385 all new with lsp in it =3 2019-11-01 17:45:29 +01:00
Tanguy MAZE
2e9686bf89 plop 2019-06-22 18:16:41 +02:00
2 changed files with 61 additions and 4 deletions

View File

@@ -6,7 +6,7 @@
; By: tmaze <tmaze@student.42.fr> +#+ +:+ +#+ ;
; +#+#+#+#+#+ +#+ ;
; Created: 2018/07/09 18:59:05 by tmaze #+# #+# ;
; Updated: 2019/03/01 11:41:00 by tmaze ### ########.fr ;
; Updated: 2019/11/01 19:19:08 by tmaze ### ########.fr ;
; ;
;******************************************************************************;
@@ -32,7 +32,16 @@ There are two things you can do about this warning:
(setq package-initialize-at-startup nil)
(defvar tmaze/packages '(evil
(defvar tmaze/packages '(lsp-treemacs
flycheck
ccls
rust-mode
company
use-package
lsp-mode
lsp-ui
company-lsp
column-enforce-mode
magit
treemacs
treemacs-magit
@@ -56,8 +65,42 @@ There are two things you can do about this warning:
(load-theme 'dakrone t)
(global-set-key (kbd "C-x g") 'magit-status)
(global-set-key (kbd "C-x t") 'treemacs)
(menu-bar-mode -1)
(xterm-mouse-mode 1)
(global-git-commit-mode)
(global-undo-tree-mode)
(line-number-mode 1)
(column-number-mode 1)
(use-package rust-mode
:mode "\\.rs\\'"
:init
(setq rust-format-on-save t))
(use-package lsp-mode
:init
(add-hook 'prog-mode-hook 'lsp-mode))
(use-package lsp-rust
:after lsp-mode)
(use-package ccls
:hook ((c-mode c++-mode objc-mode cuda-mode) .
(lambda () (require 'ccls) (lsp))))
(use-package lsp-ui
:hook (lsp-mode . lsp-ui-mode))
(use-package flycheck
:hook ((rust-mode c-mode c++-mode objc-mode cuda-mode) .
flycheck-mode))
(use-package lsp-treemacs
:commands lsp-treemacs-errors-list)
(setq lsp-prefer-flymake nil)
(setenv "ESHELL" (expand-file-name "~/.emacs.d/eshell"))

18
init.el
View File

@@ -6,7 +6,7 @@
; by: thor <thor@42.fr> +#+ +:+ +#+ ;
; +#+#+#+#+#+ +#+ ;
; Created: 2013/06/18 14:01:14 by thor #+# #+# ;
; Updated: 2018/07/16 15:57:40 by tmaze ### ########.fr ;
; Updated: 2019/10/28 09:01:53 by tmaze ### ########.fr ;
; ;
;*******************************************************************************;
@@ -16,7 +16,6 @@
;; installed packages. Don't delete this line. If you don't want it,
;; just comment it out by adding a semicolon to the start of the line.
;; You may delete these explanatory comments.
(package-initialize)
(setq config_files "/usr/share/emacs/site-lisp/")
(setq load-path (append (list nil config_files) load-path))
@@ -48,3 +47,18 @@
;*******************************************************************************;
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(gud-gdb-command-name "gdb --annotate=1")
'(large-file-warning-threshold nil)
'(package-selected-packages
'(dockerfile-mode ccls yasnippet ox-reveal web-mode json-mode docker-compose-mode column-enforce-mode treemacs-magit ox-twbs evil dakrone-theme)))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)