fixed emacs config, added picom to i3

This commit is contained in:
2023-11-02 15:32:38 +01:00
parent 38ba3b8aef
commit e881d7c7f5
4 changed files with 69 additions and 2 deletions

View File

@@ -32,6 +32,9 @@
(load-theme 'gruvbox-dark-soft t)
(setq-default display-fill-column-indicator-column 79) ; 80 column indicator - Emacs columns are 0-based...
(global-display-fill-column-indicator-mode 1)
(unless (package-installed-p 'lsp-mode)
(package-install 'lsp-mode))
@@ -42,6 +45,15 @@
(c-mode . lsp))
:commands lsp)
(require 'lsp-mode)
(lsp-register-client
(make-lsp-client :new-connection (lsp-stdio-connection '("/home/maxime/Downloads/ecsls/venv/bin/ecsls_run"))
:major-modes '(c-mode c++-mode makefile-mode)
:server-id 'ecsls))
(add-hook 'c-mode-hook 'lsp)
(add-hook 'c++-mode-hook 'lsp)
(add-hook 'makefile-mode-hook 'lsp)
;; company
(unless (package-installed-p 'company)
@@ -96,6 +108,16 @@
(require 'evil)
(evil-mode 1)
(defun my-untabify-all-lines ()
"Select all lines in the buffer and run 'untabify' on them."
(interactive)
(save-excursion
(goto-char (point-min))
(push-mark (point-max) t t)
(untabify (region-beginning) (region-end))))
(global-set-key (kbd "C-c C-x") 'my-untabify-all-lines)
;;
;; Epitech configuration
;;