No, it's not that good a book, but you don't know that until you buy it. -Gerard Holzmann

galaxy
parent 1726726193
commit 795c60f922
  1. 4
      README
  2. 2
      bins/.local/bin/ansiless
  3. 2
      bins/.local/bin/get_uptime
  4. 3
      bins/mkcert
  5. 83
      emacs/.emacs.d/init.el

@ -8,5 +8,5 @@
(Kind of)
Status: work in progress
Usage: stow [-D] <package>
Status: operational
Usage: (x)stow [-D] <package>

@ -0,0 +1,2 @@
#!/bin/sh
ansifilter | less "$@"

@ -0,0 +1,2 @@
#!/bin/sh
uptime | awk -F, '{sub(".*up ",x,$1);print $1}' | sed -e 's/^[ \t]*//'

@ -0,0 +1,3 @@
#!/bin/sh
openssl req -x509 -newkey rsa:4096 -keyout $1.rsa -out $1.pem \
-days 3650 -nodes -subj "/CN=$1"

@ -1,97 +1,104 @@
;; Number of bytes of consing between garbage collections.
; This setting doesn't matter when Emacs is running as a daemon
(setq gc-cons-threshold (* 50 1000 1000))
;; Enable use-package
; 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)
;; THEGOODS
;;; Charset
; 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)
;;; Code syntax stuff
; 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 cmake-mode)
(use-package fennel-mode)
(use-package gemini-mode)
(use-package go-mode)
(use-package ini-mode)
(use-package fennel-mode)
(use-package go-mode)
(use-package janet-mode)
(use-package lua-mode)
(use-package markdown-mode)
(use-package nginx-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 v-mode)
(use-package yaml-mode)
(use-package zig-mode)
;;; Dashboard
; Dashboard
(use-package dashboard
:ensure t
:config
(dashboard-setup-startup-hook)
(add-to-list 'dashboard-items '(agenda) t)
(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 modeline
; Doom: Eternal
(use-package doom-modeline
:ensure t
:init (doom-modeline-mode 1))
;;; Evil
(use-package evil)
(evil-mode 1)
; Can't get more evil than that
(use-package evil
:ensure t
:init (evil-mode 1))
;;; Games
; For whenever I'm bored or don't have networking
(use-package 2048-game)
(use-package sudoku)
;;; Less bars
; Outright disable this
(menu-bar-mode 0)
(tool-bar-mode 0)
;;; Org-mode
; Still ain't making good use of it
(setq org-agenda-files (quote ("~/.emacs.d/agenda.org")))
;;; Package manager
; 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/"))
;;; Question prompt
; Typing 'yes' or 'no' is annoying most of the time. Simplify it
(defalias 'yes-or-no-p 'y-or-n-p)
;;; Themes
; I like this theme
(load-theme 'misterioso t)
;;; Utilities
(use-package elpher)
;; SDOOGEHT
(custom-set-variables
;; Themes that are considered safe to load.
'(custom-safe-themes
'(default))
;; Store here packages installed explicitly by user.
;; 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
'(2048-game arduino-mode bison-mode brainfuck-mode caml cmake-mode dashboard doom-modeline elpher 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)))
'(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.
)

Loading…
Cancel
Save