~/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

112 lines
3.5 KiB

;; This setting doesn't matter when Emacs is running as a daemon
(setq gc-cons-threshold (* 50 1000 1000))
;; MELPA for some reason fails to build use-package, hence use the local self-built copy straight from upstream
(add-to-list 'load-path "~/.emacs.d/site-lisp/use-package")
(require 'use-package)
;; We aren't on a perfect world so use this.
(setq locale-coding-system 'utf-8)
(set-terminal-coding-system 'utf-8)
(set-keyboard-coding-system 'utf-8)
(set-selection-coding-system 'utf-8)
(prefer-coding-system 'utf-8)
;; Highlighting for build systems
(use-package cmake-mode)
(use-package meson-mode)
(use-package ninja-mode)
;; Highlighting for code
(use-package arduino-mode)
(use-package bison-mode)
(use-package brainfuck-mode)
(use-package caml)
(use-package fennel-mode)
(use-package go-mode)
(use-package janet-mode)
(use-package lua-mode)
(use-package nim-mode)
(use-package python-mode)
(use-package racket-mode)
(use-package rc-mode)
(use-package v-mode)
(use-package zig-mode)
;; Highlighting for markup and settings
(use-package gemini-mode)
(use-package ini-mode)
(use-package markdown-mode)
(use-package nginx-mode)
(use-package systemd)
(use-package toml-mode)
(use-package yaml-mode)
;; Dashboard
(use-package dashboard
:ensure t
:config
(dashboard-setup-startup-hook)
(setq dashboard-banner-logo-title "Break through the limits")
(setq dashboard-center-content 1)
(setq dashboard-set-heading-icons t)
(setq dashboard-set-file-icons t)
(setq dashboard-set-init-info nil)
(setq dashboard-show-shortcuts t)
(setq dashboard-startup-banner "~/.emacs.d/dashboard.txt")
(setq initial-buffer-choice (lambda () (get-buffer "*dashboard*"))))
; Doom: Eternal
(use-package doom-modeline
:ensure t
:init (doom-modeline-mode 1))
;; Can't get more evil than that
(use-package evil
:ensure t
:init (evil-mode 1))
;; For whenever I'm bored or don't have networking
(use-package 2048-game)
(use-package sudoku)
;; Fonts and icons (this only makes sense on Emacs w/ GUI)
(add-to-list 'default-frame-alist
'(font . "CozetteVector"))
(use-package all-the-icons)
;; Outright disable this
(menu-bar-mode 0)
(tool-bar-mode 0)
(setq auto-save-default nil)
(setq make-backup-files nil)
;; Still ain't making good use of it
(setq org-agenda-files (quote ("~/.emacs.d/agenda.org")))
;; For managing emacs lisp stuff
(require 'package)
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/"))
(add-to-list 'package-archives '("nongnu" . "https://elpa.nongnu.org/packages/"))
;; Typing 'yes' or 'no' is annoying most of the time. Simplify it
(defalias 'yes-or-no-p 'y-or-n-p)
;; I like this theme
(load-theme 'misterioso t)
(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.
'(custom-safe-themes '(default))
'(package-selected-packages
'(ninja-mode meson-mode racket-mode 2048-game arduino-mode bison-mode brainfuck-mode caml cmake-mode dashboard doom-modeline evil fennel-mode gemini-mode go-mode ini-mode janet-mode lua-mode markdown-mode nginx-mode nim-mode python-mode rc-mode sudoku systemd toml-mode v-mode yaml-mode zig-mode)))
(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.
)