Browse Source

I wish I had time to explain dimensional transcendentalism -Dr. Who

galaxy
parent
commit
ff257b46ca
  1. 126
      emacs/.emacs.d/init.el

126
emacs/.emacs.d/init.el

@ -1,110 +1,74 @@
;; This setting doesn't matter when Emacs is running as a daemon
(setq gc-cons-threshold (* 50 1000 1000))
;; 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
(leaf cmake-mode)
(leaf meson-mode)
(leaf ninja-mode)
;; Highlighting for code
(leaf arduino-mode)
(leaf bison-mode)
(leaf brainfuck-mode)
(leaf caml)
(leaf execline)
(leaf fennel-mode)
(leaf go-mode)
(leaf janet-mode)
(leaf lua-mode)
(leaf nim-mode)
(leaf python-mode)
(leaf racket-mode)
(leaf rc-mode)
(leaf v-mode)
(leaf zig-mode)
;; Highlighting for markup and settings
(leaf gemini-mode)
(leaf ini-mode)
(leaf markdown-mode)
(leaf nginx-mode)
(leaf systemd)
(leaf toml-mode)
(leaf yaml-mode)
;; Custom
(custom-set-variables
'(custom-safe-themes nil)
'(package-selected-packages
'(moe-theme doom-modeline el-get ement ts transient plz telega queue execline all-the-icons leaf ninja-mode meson-node racket-mode 2048-game arduino-mode bison-mode brainfuck-mode caml cmake-mode dashboard 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
;; I don't even know why this is needed
)
;; Dashboard
(leaf dashboard
:ensure t
:config
(dashboard-setup-startup-hook)
(setq dashboard-banner-logo-title "Break through the limits")
(setq dashboard-banner-logo-title "A soul devotion lunatic")
(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*"))))
(setq dashboard-startup-banner "~/.emacs.d/dashboard.txt"))
;; Unlimited power!
(leaf powerline
:ensure t)
;; Disable
(menu-bar-mode 0)
(recentf-mode 0)
(tool-bar-mode 0)
(setq auto-save-default nil)
(setq make-backup-files nil)
;; Can't get more evil than that
;; Extensible vi layer for Emacs
(leaf evil
:ensure t
:init (evil-mode 1))
;; For whenever I'm bored or don't have networking
;; Games
(leaf 2048-game)
(leaf sudoku)
;; Fonts and icons (this only makes sense on Emacs w/ GUI)
(add-to-list 'default-frame-alist
'(font . "CozetteVector"))
;; Garbage collection
(setq gc-cons-threshold (* 50 1000 1000))
(leaf all-the-icons
:ensure t)
;; Hooks
(add-hook 'telega-load-hook
(lambda ()
(define-key global-map (kbd "C-c t") telega-prefix-map)))
;; Outright disable this
(menu-bar-mode 0)
(tool-bar-mode 0)
(setq auto-save-default nil)
(setq make-backup-files nil)
(recentf-mode 0)
;; Locale
(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)
;; For managing emacs lisp stuff
;; Modeline
(leaf doom-modeline
:ensure t
:init (doom-modeline-mode 1))
;; Packages
(require 'package)
(add-to-list 'package-archives '("melpa" . "https://stable.melpa.org/packages/"))
(add-to-list 'package-archives '("melpa-stable" . "https://stable.melpa.org/packages/"))
(add-to-list 'package-archives '("melpa-unstable" . "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
;; Prompt
(defalias 'yes-or-no-p 'y-or-n-p)
;; Themes
(require 'airline-themes)
(load-theme 'airline-monochrome t)
(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.
'(cua-mode t)
'(custom-safe-themes 'nil)
'(package-selected-packages
'(execline all-the-icons airline-themes powerline leaf ninja-mode meson-mode racket-mode 2048-game arduino-mode bison-mode brainfuck-mode caml cmake-mode dashboard 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.
)
(add-to-list 'default-frame-alist
'(font . "CozetteVector"))
(leaf all-the-icons
:ensure t
)
(load-theme 'moe-dark t)

Loading…
Cancel
Save