ouighe
This commit is contained in:
parent
5e69b25284
commit
9377230e3b
5
.gitignore
vendored
5
.gitignore
vendored
|
@ -1,2 +1,7 @@
|
||||||
elpaca/
|
elpaca/
|
||||||
|
eln-cache/
|
||||||
|
elpa/
|
||||||
|
recentf
|
||||||
|
transient/
|
||||||
|
undo/
|
||||||
config.el
|
config.el
|
||||||
|
|
128
config.org
128
config.org
|
@ -1,7 +1,6 @@
|
||||||
#+TITLE: Emacs Configuration
|
#+TITLE: Emacs Configuration
|
||||||
#+AUTHOR: Mars (@pupbrained)
|
#+AUTHOR: Mars (@pupbrained)
|
||||||
#+EMAIL: mars@pupbrained.xyz
|
#+EMAIL: mars@pupbrained.xyz
|
||||||
#+STARTUP: showeverything
|
|
||||||
|
|
||||||
* Basic Setup
|
* Basic Setup
|
||||||
|
|
||||||
|
@ -37,6 +36,7 @@
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(setq initial-scratch-message nil)
|
(setq initial-scratch-message nil)
|
||||||
(setq initial-buffer-choice nil)
|
(setq initial-buffer-choice nil)
|
||||||
|
|
||||||
(add-hook 'emacs-startup-hook
|
(add-hook 'emacs-startup-hook
|
||||||
(lambda ()
|
(lambda ()
|
||||||
(when (and (get-buffer "*scratch*")
|
(when (and (get-buffer "*scratch*")
|
||||||
|
@ -44,6 +44,35 @@
|
||||||
(kill-buffer "*scratch*"))))
|
(kill-buffer "*scratch*"))))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
** Dirvish
|
||||||
|
|
||||||
|
#+begin_src emacs-lisp
|
||||||
|
(use-package dirvish
|
||||||
|
:ensure t
|
||||||
|
:config
|
||||||
|
(dirvish-override-dired-mode)
|
||||||
|
(dirvish-side-follow-mode)
|
||||||
|
(setq dired-mouse-drag-files t)
|
||||||
|
(setq mouse-drag-and-drop-region-cross-program t))
|
||||||
|
|
||||||
|
;; Addtional syntax highlighting for dired
|
||||||
|
(use-package diredfl
|
||||||
|
:ensure t
|
||||||
|
:hook
|
||||||
|
((dired-mode . diredfl-mode)
|
||||||
|
(dirvish-directory-view-mode . diredfl-mode))
|
||||||
|
:config
|
||||||
|
(set-face-attribute 'diredfl-dir-name nil :bold t))
|
||||||
|
|
||||||
|
(use-package all-the-icons
|
||||||
|
:ensure t)
|
||||||
|
|
||||||
|
(use-package ns-auto-titlebar
|
||||||
|
:ensure t
|
||||||
|
:config
|
||||||
|
(when (eq system-type 'darwin) (ns-auto-titlebar-mode)))
|
||||||
|
#+end_src
|
||||||
|
|
||||||
** Fix Indents + Enable Autopairs
|
** Fix Indents + Enable Autopairs
|
||||||
|
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
|
@ -66,6 +95,20 @@
|
||||||
:config
|
:config
|
||||||
(evil-mode 1))
|
(evil-mode 1))
|
||||||
|
|
||||||
|
(use-package evil-collection
|
||||||
|
:ensure t
|
||||||
|
:config
|
||||||
|
(evil-collection-init))
|
||||||
|
|
||||||
|
(use-package evil-leader
|
||||||
|
:ensure t
|
||||||
|
:config
|
||||||
|
(global-evil-leader-mode)
|
||||||
|
(setq evil-leader/leader "<SPC>")
|
||||||
|
(evil-leader/set-key "a" #'eglot-code-actions)
|
||||||
|
(evil-leader/set-key "bd" #'kill-this-buffer)
|
||||||
|
(evil-leader/set-key "e" #'dirvish-side))
|
||||||
|
|
||||||
(use-package eglot
|
(use-package eglot
|
||||||
:hook (emacs-lisp-mode . eglot-ensure))
|
:hook (emacs-lisp-mode . eglot-ensure))
|
||||||
|
|
||||||
|
@ -78,3 +121,86 @@
|
||||||
(setq auto-save-default nil)
|
(setq auto-save-default nil)
|
||||||
(setq make-backup-files nil)
|
(setq make-backup-files nil)
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
** Rainbow Delimiters
|
||||||
|
|
||||||
|
#+begin_src emacs-lisp
|
||||||
|
(use-package rainbow-delimiters
|
||||||
|
:ensure t
|
||||||
|
:config
|
||||||
|
(add-hook 'prog-mode-hook 'rainbow-delimiters-mode))
|
||||||
|
#+end_src
|
||||||
|
|
||||||
|
** Disable Bars
|
||||||
|
|
||||||
|
#+begin_src emacs-lisp
|
||||||
|
(menu-bar-mode -1)
|
||||||
|
(scroll-bar-mode -1)
|
||||||
|
(tool-bar-mode -1)
|
||||||
|
#+end_src
|
||||||
|
|
||||||
|
** Line Numbers
|
||||||
|
|
||||||
|
#+begin_src emacs-lisp
|
||||||
|
(global-display-line-numbers-mode t)
|
||||||
|
|
||||||
|
(setq display-line-numbers-type 'relative)
|
||||||
|
|
||||||
|
(dolist (mode '(term-mode-hook
|
||||||
|
vterm-mode-hook
|
||||||
|
shell-mode-hook
|
||||||
|
dirvish-setup-hook
|
||||||
|
eshell-mode-hook))
|
||||||
|
(add-hook mode (lambda () (display-line-numbers-mode 0))))
|
||||||
|
#+end_src
|
||||||
|
|
||||||
|
** Vim-Style Scrolling
|
||||||
|
|
||||||
|
#+begin_src emacs-lisp
|
||||||
|
(setq scroll-step 3
|
||||||
|
scroll-conservatively 9999)
|
||||||
|
#+end_src
|
||||||
|
|
||||||
|
** System-Specific Settings
|
||||||
|
|
||||||
|
#+begin_src emacs-lisp
|
||||||
|
(cond
|
||||||
|
((eq system-type 'darwin)
|
||||||
|
(setq default-frame-alist '((font . "Iosevka Comfy-14"))))
|
||||||
|
((eq system-type 'gnu/linux)
|
||||||
|
(setq default-frame-alist '((font . "Maple Mono NF-12")
|
||||||
|
(undecorated . t)))))
|
||||||
|
#+end_src
|
||||||
|
|
||||||
|
** Use Short Answers
|
||||||
|
|
||||||
|
#+begin_src emacs-lisp
|
||||||
|
(setq use-short-answers t)
|
||||||
|
#+end_src
|
||||||
|
|
||||||
|
** Undo Tree
|
||||||
|
|
||||||
|
#+begin_src emacs-lisp
|
||||||
|
(use-package undo-tree
|
||||||
|
:ensure t
|
||||||
|
:demand t
|
||||||
|
:config
|
||||||
|
(global-undo-tree-mode)
|
||||||
|
(setq undo-tree-history-directory-alist '(("." . "~/.emacs.d/undo"))))
|
||||||
|
#+end_src
|
||||||
|
|
||||||
|
** Dashboard
|
||||||
|
|
||||||
|
#+begin_src emacs-lisp
|
||||||
|
(use-package dashboard
|
||||||
|
:ensure t
|
||||||
|
:config
|
||||||
|
(dashboard-setup-startup-hook)
|
||||||
|
(setq dashboard-startup-banner 'logo)
|
||||||
|
(setq dashboard-center-content t)
|
||||||
|
(setq dashboard-vertically-center-content t)
|
||||||
|
(setq dashboard-startup-banner 'logo)
|
||||||
|
(setq initial-buffer-choice (lambda () (get-buffer "*dashboard*")))
|
||||||
|
(setq recentf-exclude '("~/.emacs.d/.cache/treemacs-persist")))
|
||||||
|
#+end_src
|
||||||
|
|
||||||
|
|
|
@ -2,4 +2,3 @@
|
||||||
(setq tab-always-indent 'complete)
|
(setq tab-always-indent 'complete)
|
||||||
(setq text-mode-ispell-word-completion nil)
|
(setq text-mode-ispell-word-completion nil)
|
||||||
(setq read-extended-command-predicate #'command-completion-default-include-p)
|
(setq read-extended-command-predicate #'command-completion-default-include-p)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue