emacs: Initial custom config
This commit is contained in:
parent
0259092e96
commit
e9da69f71c
6 changed files with 70 additions and 0 deletions
10
home/programs/emacs/config.d/config/evil.el
Normal file
10
home/programs/emacs/config.d/config/evil.el
Normal 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))
|
5
home/programs/emacs/config.d/config/packages.el
Normal file
5
home/programs/emacs/config.d/config/packages.el
Normal 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))
|
14
home/programs/emacs/config.d/config/theme.el
Normal file
14
home/programs/emacs/config.d/config/theme.el
Normal 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))
|
11
home/programs/emacs/config.d/config/which-key.el
Normal file
11
home/programs/emacs/config.d/config/which-key.el
Normal 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"))
|
||||
|
7
home/programs/emacs/config.d/early-init.el
Normal file
7
home/programs/emacs/config.d/early-init.el
Normal 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)
|
|
@ -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))
|
Loading…
Reference in a new issue