emacs: Initial custom config

This commit is contained in:
Mr Hedgehog 2022-05-10 15:05:56 -04:00
parent 0259092e96
commit e9da69f71c
No known key found for this signature in database
GPG key ID: A5F69F6C161FDA7E
6 changed files with 70 additions and 0 deletions

View file

@ -0,0 +1,10 @@
(use-package evil
:init
(setq evil-want-integration t)
(setq evil-want-keybinding nil)
:config
(evil-mode 1))
(use-package evil-collection
:after evil
:config
(evil-collection-init))

View file

@ -0,0 +1,5 @@
(straight-use-package 'use-package)
(use-package parinfer-rust-mode
:hook emacs-lisp-mode
:init
(setq parinfer-rust-auto-download t))

View file

@ -0,0 +1,14 @@
(use-package doom-themes
:config
;; Global settings (defaults)
(setq doom-themes-enable-bold t ; if nil, bold is universally disabled
doom-themes-enable-italic t) ; if nil, italics is universally disabled
(load-theme 'doom-tokyo-night t)
;; Enable flashing mode-line on errors
(doom-themes-visual-bell-config)
;; Treemacs Theme
(setq doom-themes-treemacs-theme "doom-colors") ; use "doom-colors" for less minimal icon theme
(doom-themes-treemacs-config)
;; Corrects (and improves) org-mode's native fontification.
(doom-themes-org-config))

View file

@ -0,0 +1,11 @@
(use-package which-key
:init
(which-key=mode))
(use-package general
:config
(general-evil-setup t)
(general-define-key
:states '(normal motion insert emacs)
:prefix "SPC"))

View file

@ -0,0 +1,7 @@
(setq package-enable-at-startup nil)
(setq use-package-ensure-function 'ignore)
(setq package-archives nil)
(setq native-comp-deferred-compilation t)
(setq straight-use-package-by-default t)

View file

@ -0,0 +1,23 @@
(defvar bootstrap-version)
(let ((bootstrap-file
(expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory))
(bootstrap-version 5))
(unless (file-exists-p bootstrap-file)
(with-current-buffer
(url-retrieve-synchronously
"https://raw.githubusercontent.com/raxod502/straight.el/develop/install.el"
'silent 'inhibit-cookies)
(goto-char (point-max))
(eval-print-last-sexp)))
(load bootstrap-file nil 'nomessage))
(add-to-list 'load-path "~/.config/emacs/config/")
(load "packages")
(load "theme")
(load "evil")
(load "which-key")
(custom-set-variables
'(warning-suppress-types '((comp) (comp)))
(custom-set-faces))