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

43
.emacs
View File

@@ -23,7 +23,6 @@
(show-paren-mode 1)
(electric-pair-mode 1)
(global-display-line-numbers-mode 1)
(global-font-lock-mode 0)
(setq display-line-numbers-type 'relative)
(set-face-attribute 'default nil :height 200)
(global-set-key (kbd "<escape>") 'keyboard-escape-quit)
@@ -31,7 +30,24 @@
(unless (package-installed-p 'gruvbox-theme)
(package-install 'gruvbox-theme))
(load-theme 'gruvbox-dark-soft t)
(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)
(setq neo-theme (if (display-graphic-p) 'icons))
;; emacs gdb
(fmakunbound 'gdb)
(fmakunbound 'gdb-enable-debug)
(unless (package-installed-p 'gdb-mi)
(package-install 'gdb-mi))
(use-package gdb-mi
:init
(fmakunbound 'gdb)
(fmakunbound 'gdb-enable-debug))
;; neotree
(unless (package-installed-p 'neotree)
@@ -57,6 +73,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
;;
@@ -64,3 +90,16 @@
(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
'(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.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)