updated emacs config
This commit is contained in:
60
.emacs
60
.emacs
@@ -22,15 +22,41 @@
|
||||
(column-number-mode 1)
|
||||
(show-paren-mode 1)
|
||||
(electric-pair-mode 1)
|
||||
(setq-default indent-tabs-mode t)
|
||||
(setq-default tab-width 4)
|
||||
(setq c-set-style "k&r")
|
||||
(setq c-basic-offset 4)
|
||||
(global-display-line-numbers-mode 1)
|
||||
(setq display-line-numbers-type 'relative)
|
||||
(set-face-attribute 'default nil :height 200)
|
||||
(global-set-key (kbd "<escape>") 'keyboard-escape-quit)
|
||||
(rc/require-theme 'gruber-darker)
|
||||
|
||||
(unless (package-installed-p 'gruvbox-theme)
|
||||
(package-install 'gruvbox-theme))
|
||||
|
||||
(load-theme 'gruvbox-dark-soft t)
|
||||
|
||||
(unless (package-installed-p 'lsp-mode)
|
||||
(package-install 'lsp-mode))
|
||||
|
||||
(use-package lsp-mode
|
||||
:init
|
||||
:hook (;; replace XXX-mode with concrete major-mode(e. g. python-mode)
|
||||
(c-mode . lsp))
|
||||
:commands lsp)
|
||||
|
||||
;; company
|
||||
(unless (package-installed-p 'company)
|
||||
(package-install 'company))
|
||||
|
||||
(use-package company
|
||||
:after lsp-mode
|
||||
:hook (prog-mode . company-mode)
|
||||
:bind (:map company-active-map
|
||||
("<tab>" . company-complete-selection))
|
||||
(:map lsp-mode-map
|
||||
("<tab>" . company-indent-or-complete-common))
|
||||
:custom
|
||||
(company-minimum-prefix-length 1)
|
||||
(company-idle-delay 0.0))
|
||||
|
||||
(setq neo-theme (if (display-graphic-p) 'icons))
|
||||
|
||||
;; neotree
|
||||
(unless (package-installed-p 'neotree)
|
||||
@@ -48,20 +74,6 @@
|
||||
(global-set-key (kbd "C-c C-c") 'simpleclip-copy)
|
||||
(global-set-key (kbd "C-c C-v") 'simpleclip-paste)
|
||||
|
||||
;; Magit
|
||||
(unless (package-installed-p 'magit)
|
||||
(package-install 'magit))
|
||||
|
||||
;; go-mode
|
||||
(unless (package-installed-p 'go-mode)
|
||||
(package-install 'go-mode))
|
||||
|
||||
;; Rust mode
|
||||
(unless (package-installed-p 'rust-mode)
|
||||
(package-refresh-contents)
|
||||
(package-install 'rust-mode))
|
||||
|
||||
|
||||
;; Download Evil
|
||||
(unless (package-installed-p 'evil)
|
||||
(package-install 'evil))
|
||||
@@ -69,13 +81,21 @@
|
||||
;; Enable Evil
|
||||
(require 'evil)
|
||||
(evil-mode 1)
|
||||
|
||||
;;
|
||||
;; Epitech configuration
|
||||
;;
|
||||
(add-to-list 'load-path "~/.emacs.d/lisp")
|
||||
(load "site-start.d/epitech-init.el")
|
||||
|
||||
(setq-default indent-tabs-mode nil)
|
||||
(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.
|
||||
'(package-selected-packages
|
||||
'(evil rust-mode go-mode smex simpleclip paredit org-cliplink neotree multiple-cursors magit ido-completing-read+ helm haskell-mode gruber-darker-theme dash-functional all-the-icons)))
|
||||
'(company simpleclip rust-mode org-cliplink neotree magit gruber-darker-theme go-mode evil dash-functional all-the-icons)))
|
||||
(custom-set-faces
|
||||
;; custom-set-faces was added by Custom.
|
||||
;; If you edit it by hand, you could mess it up, so be careful.
|
||||
|
||||
Reference in New Issue
Block a user