dots

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 48187d1c38ddb5522f924dea58f393f73e7a1139
Author: Gabriel G. de Brito <gabrielgbrito@icloud.com>
Date:   Sun, 30 Mar 2025 20:09:06 -0300

In the beggining there were darkness

Diffstat:
A.XCompose | 58++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
A.bashrc | 44++++++++++++++++++++++++++++++++++++++++++++
A.profile | 21+++++++++++++++++++++
AREADME.md | 5+++++
Aemacs/init.el | 171+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Amicro/bindings.json | 4++++
Amicro/settings.json | 46++++++++++++++++++++++++++++++++++++++++++++++
Atmux/tmux.conf | 4++++
8 files changed, 353 insertions(+), 0 deletions(-)

diff --git a/.XCompose b/.XCompose @@ -0,0 +1,58 @@ +include "%L" + +# GREEK CAPITAL LETTERS +<Multi_key> <G> <A> : "Α" U0391 # GREEK CAPITAL LETTER ALPHA +<Multi_key> <G> <B> : "Β" U0392 # GREEK CAPITAL LETTER BETA +<Multi_key> <G> <G> : "Γ" U0393 # GREEK CAPITAL LETTER GAMMA +<Multi_key> <G> <D> : "Δ" U0394 # GREEK CAPITAL LETTER DELTA +<Multi_key> <G> <E> : "Ε" U0395 # GREEK CAPITAL LETTER EPSILON +<Multi_key> <G> <Z> : "Ζ" U0396 # GREEK CAPITAL LETTER ZETA +<Multi_key> <G> <H> : "Η" U0397 # GREEK CAPITAL LETTER ETA +<Multi_key> <G> <I> : "Ι" U0399 # GREEK CAPITAL LETTER IOTA +<Multi_key> <G> <K> : "Κ" U039A # GREEK CAPITAL LETTER KAPPA +<Multi_key> <G> <L> : "Λ" U039B # GREEK CAPITAL LETTER LAMDA +<Multi_key> <G> <M> : "Μ" U039C # GREEK CAPITAL LETTER MU +<Multi_key> <G> <N> : "Ν" U039D # GREEK CAPITAL LETTER NU +<Multi_key> <G> <P> : "Π" U03A0 # GREEK CAPITAL LETTER PI +<Multi_key> <G> <R> : "Ρ" U03A1 # GREEK CAPITAL LETTER RHO +<Multi_key> <G> <S> : "Σ" U03A3 # GREEK CAPITAL LETTER SIGMA +<Multi_key> <G> <T> : "Τ" U03A4 # GREEK CAPITAL LETTER TAU +<Multi_key> <G> <U> : "Υ" U03A5 # GREEK CAPITAL LETTER UPSILON +<Multi_key> <G> <F> : "Φ" U03A6 # GREEK CAPITAL LETTER PHI +<Multi_key> <G> <X> : "Χ" U03A7 # GREEK CAPITAL LETTER CHI +<Multi_key> <G> <O> : "Ω" U03A9 # GREEK CAPITAL LETTER OMEGA + +# DOUBLES (additional stroke <Q>) +<Multi_key> <G> <Q> <T> : "Θ" U0398 # GREEK CAPITAL LETTER THETA +<Multi_key> <G> <Q> <O> : "Ο" U039F # GREEK CAPITAL LETTER OMICRON +<Multi_key> <G> <Q> <X> : "Ξ" U039E # GREEK CAPITAL LETTER XI +<Multi_key> <G> <Q> <P> : "Ψ" U03A8 # GREEK CAPITAL LETTER PSI + +# greek small letters +<Multi_key> <g> <a> : "α" U03B1 # GREEK SMALL LETTER ALPHA +<Multi_key> <g> <b> : "β" U03B2 # GREEK SMALL LETTER BETA +<Multi_key> <g> <g> : "γ" U03B3 # GREEK SMALL LETTER GAMMA +<Multi_key> <g> <d> : "δ" U03B4 # GREEK SMALL LETTER DELTA +<Multi_key> <g> <e> : "ε" U03B5 # GREEK SMALL LETTER EPSILON +<Multi_key> <g> <z> : "ζ" U03B6 # GREEK SMALL LETTER ZETA +<Multi_key> <g> <h> : "η" U03B7 # GREEK SMALL LETTER ETA +<Multi_key> <g> <i> : "ι" U03B9 # GREEK SMALL LETTER IOTA +<Multi_key> <g> <k> : "κ" U03BA # GREEK SMALL LETTER KAPPA +<Multi_key> <g> <l> : "λ" U03BB # GREEK SMALL LETTER LAMDA +<Multi_key> <g> <m> : "μ" U03BC # GREEK SMALL LETTER MU +<Multi_key> <g> <n> : "ν" U03BD # GREEK SMALL LETTER NU +<Multi_key> <g> <p> : "π" U03C0 # GREEK SMALL LETTER PI +<Multi_key> <g> <r> : "ρ" U03C1 # GREEK SMALL LETTER RHO +<Multi_key> <g> <s> : "σ" U03C3 # GREEK SMALL LETTER SIGMA +<Multi_key> <g> <t> : "τ" U03C4 # GREEK SMALL LETTER TAU +<Multi_key> <g> <u> : "υ" U03C5 # GREEK SMALL LETTER UPSILON +<Multi_key> <g> <f> : "φ" U03C6 # GREEK SMALL LETTER PHI +<Multi_key> <g> <x> : "χ" U03C7 # GREEK SMALL LETTER CHI +<Multi_key> <g> <o> : "ω" U03C9 # GREEK SMALL LETTER OMEGA + +# doubles (additional stroke <q>) +<Multi_key> <g> <q> <t> : "θ" U03B8 # GREEK SMALL LETTER THETA +<Multi_key> <g> <q> <o> : "ο" U03BF # GREEK SMALL LETTER OMICRON +<Multi_key> <g> <q> <p> : "ψ" U03C8 # GREEK SMALL LETTER PSI +<Multi_key> <g> <q> <s> : "ς" U03C2 # GREEK SMALL LETTER FINAL SIGMA +<Multi_key> <g> <q> <x> : "ξ" U03BE # GREEK SMALL LETTER XI diff --git a/.bashrc b/.bashrc @@ -0,0 +1,44 @@ +# If not running interactively, don't do anything +case $- in + *i*) ;; + *) return;; +esac + +HISTCONTROL=ignoreboth +shopt -s histappend +HISTSIZE=1000 +HISTFILESIZE=2000 + +# check the window size after each command and, if necessary, +# update the values of LINES and COLUMNS. +shopt -s checkwinsize + +# If set, the pattern "**" used in a pathname expansion context will +# match all files and zero or more directories and subdirectories. +shopt -s globstar + +# enable color support of ls and also add handy aliases +if [ -x /usr/bin/dircolors ]; then + test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" + alias ls='ls --color=auto' + alias dir='dir --color=auto' + alias vdir='vdir --color=auto' + alias grep='grep --color=auto' + alias fgrep='fgrep --color=auto' + alias egrep='egrep --color=auto' +fi + +# enable programmable completion features (you don't need to enable +# this, if it's already enabled in /etc/bash.bashrc and /etc/profile +# sources /etc/bash.bashrc). +if ! shopt -oq posix; then + if [ -f /usr/share/bash-completion/bash_completion ]; then + . /usr/share/bash-completion/bash_completion + elif [ -f /etc/bash_completion ]; then + . /etc/bash_completion + fi +fi + +alias make='make -j12' + +PS1="\n\[\e[92m\]\h\[\e[m\]:\[\e[94m\]\w\[\e[m\]>" diff --git a/.profile b/.profile @@ -0,0 +1,21 @@ +# ~/.profile: executed by the command interpreter for login shells. +# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login +# exists. +# see /usr/share/doc/bash/examples/startup-files for examples. +# the files are located in the bash-doc package. + +# the default umask is set in /etc/profile; for setting the umask +# for ssh logins, install and configure the libpam-umask package. +#umask 022 + +# if running bash +if [ -n "$BASH_VERSION" ]; then + # include .bashrc if it exists + if [ -f "$HOME/.bashrc" ]; then + . "$HOME/.bashrc" + fi +fi + +export PLAN9=$HOME/src/plan9port +export PATH="$HOME/.local/bin:$HOME/go/bin:$HOME/opt/zig:$HOME/opt/odin:$PATH:/usr/local/go/bin:$PLAN9/bin" +export EDITOR=micro diff --git a/README.md b/README.md @@ -0,0 +1,5 @@ +dealing with this started getting hard again + +on Micro I install the following plugins: +- editorconfig +- quoter diff --git a/emacs/init.el b/emacs/init.el @@ -0,0 +1,171 @@ +(require 'package) +(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t) +(package-initialize) + +;; +;; Appearance. +;; + +(menu-bar-mode 0) +(tool-bar-mode 0) +(scroll-bar-mode 0) +(blink-cursor-mode 0) +(setq-default display-line-numbers-width 3) +(add-hook 'prog-mode-hook + (lambda () + (display-line-numbers-mode t) + (display-fill-column-indicator-mode t))) + +(set-face-attribute 'default nil :font "Fragment Mono-12") +(set-frame-font "Fragment Mono-12" nil t) + +(setq scroll-step 1) +(setq scroll-conservatively 100000) +(setq-default show-trailing-whitespace t) + +(use-package color-theme-sanityinc-tomorrow + :ensure t + :init + (load-theme 'sanityinc-tomorrow-night t)) + +(use-package rainbow-mode + :ensure t + :init + (rainbow-mode t)) + +(use-package rainbow-delimiters + :ensure t + :init + (rainbow-delimiters-mode)) + +;; +;; Interface. +;; + +(defalias 'yes-or-no-p 'y-or-n-p) +(setopt use-short-anwsers t) +(windmove-default-keybindings 'meta) + +(use-package ido-completing-read+ + :ensure t + :init + (ido-mode t) + (ido-everywhere t) + (ido-ubiquitous-mode t)) + +(use-package amx + :ensure t + :init + (amx-mode t)) + +(use-package eldoc-box + :ensure t) + +(setq make-backup-files nil) + +(setq-default compile-command "") + +(use-package magit + :ensure t + :init + (global-set-key (kbd "C-c C-g") #'magit)) + +(use-package forge + :ensure t + :after magit) + +(use-package diff-hl + :ensure t + :init + (global-diff-hl-mode)) + +(global-set-key (kbd "C-c C-c") #'compile) +(global-set-key (kbd "C-c C-d") #'xref-find-definitions) +(global-set-key (kbd "C-c C-r") #'eglot-rename) +(global-set-key (kbd "C-c C-?") #'xref-find-references) +(global-set-key (kbd "C-c C-b") #'flymake-show-buffer-diagnostics) + +;; +;; Editing. +;; + +(electric-indent-mode t) +(electric-pair-mode t) +(add-hook 'text-mode-hook + (lambda () + (auto-fill-mode t))) +(delete-selection-mode t) + +(use-package multiple-cursors + :ensure t + :init + (global-set-key (kbd "C-S-c") #'mc/edit-lines) + (global-set-key (kbd "C->") #'mc/mark-next-like-this) + (global-set-key (kbd "C-<") #'mc/mark-previous-like-this)) + +(use-package editorconfig-mode + :ensure t + :init + (editorconfig-mode t)) + +;; +;; Langs. +;; + +(add-hook 'eglot-managed-mode-hook + (lambda () + (eglot-inlay-hints-mode -1) + (eldoc-box-hover-at-point-mode t) + (add-hook 'after-save-hook #'eglot-format nil t))) + +(add-hook 'emacs-lisp-mode-hook + (lambda () + (prettify-symbols-mode t))) + +(use-package go-mode + :ensure t + :init + (add-hook 'go-mode-hook #'eglot-ensure) + (setq tab-width 4) + (setq indent-tabs-mode t)) + +(setq-default c-basic-offset 4) +(setq-default c-default-style "bsd") +(defun c-configs () + (eglot-ensure) + (setq tab-width 4) + (setq indent-tabs-mode nil)) +(add-hook 'c-mode-hook #'c-configs) +(add-hook 'cpp-mode-hook #'c-configs) + +(use-package web-mode + :ensure t + :init + (add-to-list 'auto-mode-alist '("\\.html?\\'" . web-mode))) + +(use-package markdown-mode + :ensure t) + +(use-package erlang-mode + :ensure t) + +(use-package elixir-mode + :ensure t) + +(use-package haskell-mode + :ensure 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. + '(inhibit-startup-screen t) + '(package-selected-packages + '(eldoc-box multiple-cursors rainbow-delimiters rainbow-mode color-theme-sanityinc-tomorrow))) +(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. + ) diff --git a/micro/bindings.json b/micro/bindings.json @@ -0,0 +1,4 @@ +{ + "Alt-/": "lua:comment.comment", + "CtrlUnderscore": "lua:comment.comment", +} diff --git a/micro/settings.json b/micro/settings.json @@ -0,0 +1,46 @@ +{ + "*.[ex,exs]": { + "tabsize": 2, + "tabstospaces": true + }, + "*.c": { + "commenttype": "/* %s */", + "tabsize": 4, + "tabstospaces": true + }, + "*.cpp": { + "tabsize": 4, + "tabstospaces": true + }, + "*.erl": { + "tabsize": 2, + "tabstospaces": true + }, + "*.go": { + "tabsize": 4 + }, + "*.hs": { + "tabsize": 2, + "tabstospaces": true + }, + "*.lua": { + "tabsize": 2, + "tabstospaces": true + }, + "*.py": { + "tabsize": 4, + "tabstospaces": true + }, + "autosave": 3, + "autosu": true, + "colorcolumn": 80, + "cursorline": false, + "diffgutter": true, + "hlsearch": true, + "hltaberrors": true, + "hltrailingws": true, + "indentchar": "|", + "matchbraceleft": true, + "parsecursor": true, + "tabsize": 8 +} diff --git a/tmux/tmux.conf b/tmux/tmux.conf @@ -0,0 +1,4 @@ +set -sg escape-time 0 +set -g mouse on +set -ag terminal-overrides ",xterm-256color:RGB" +set -g default-terminal "tmux-256color"