This commit is contained in:
k 2024-08-22 16:05:48 -04:00
commit 4efb3d6d9e

116
init.el Normal file
View File

@ -0,0 +1,116 @@
(tool-bar-mode -1)
(scroll-bar-mode -1)
(menu-bar-mode -1)
(set-frame-parameter nil 'alpha-background 100)
(set-face-attribute 'default nil :font "GoMono Nerd Font Mono-10")
(require 'package)
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)
(package-initialize)
(require 'use-package)
(use-package vterm :ensure t)
(use-package magit :ensure t)
(use-package docker :ensure t)
(use-package elpher :ensure t)
(use-package rust-mode :ensure t)
(use-package nerd-icons :ensure t)
(use-package gemini-mode :ensure t)
(use-package system-packages :ensure t)
(use-package latex-preview-pane :ensure t)
(use-package eglot)
(use-package emojify
:ensure t
:hook (after-init . global-emojify-mode))
(use-package dashboard
:ensure t
)
(use-package acme-theme
:ensure t
:config
(load-theme 'acme t))
(setq dashboard-display-icons-p t) ; display icons on both GUI and terminal
(setq dashboard-icon-type 'nerd-icons) ; use `nerd-icons' package
(setq dashboard-center-content t)
(setq dashboard-vertically-center-content t)
(setq dashboard-items '((recents . 5)
(bookmarks . 5)
(projects . 5)
))
(latex-preview-pane-enable)
(setq-default indent-tabs-mode)
(setq default-frame-alist
(append (list '(width . 72) '(height . 40)
'(vertical-scroll-bars . nil)
'(internal-border-width . 24))))
(set-frame-parameter (selected-frame)
'internal-border-width 24)
(defun mode-line-render (left right)
(let* ((available-width (- (window-width) (length left) )))
(format (format "%%s %%%ds" available-width) left right)))
(setq-default mode-line-format
'((:eval
(mode-line-render
(format-mode-line (list
(propertize "" 'face `(:inherit mode-line-buffer-id)
'help-echo "Mode(s) menu"
'mouse-face 'mode-line-highlight
'local-map mode-line-major-mode-keymap)
" %b "
(if (and buffer-file-name (buffer-modified-p))
(propertize "(modified)" 'face `(:inherit face-faded)))))
(format-mode-line
(propertize "%4l:%2c " 'face `(:inherit face-faded)))))))
(setq-default line-spacing 1)
(set-default 'cursor-type '(bar . 1))
(blink-cursor-mode 0)
(setq-default header-line-format mode-line-format)
(setq-default mode-line-format'(""))
(set-face-attribute 'header-line nil
:underline (face-foreground 'default)
:background (face-background 'default)
:box nil)
(set-face-attribute 'mode-line nil
:height 10
:underline (face-foreground 'default)
:overline nil
:box nil
:foreground (face-background 'default)
:background (face-background 'default))
(dashboard-setup-startup-hook)
(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
'(acme-theme dashboard emojify latex-preview-pane system-packages gemini-mode nerd-icons rust-mode elpher docker magit vterm)))
(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.
)