Skip to content

Instantly share code, notes, and snippets.

View xevrem's full-sized avatar

Erika Jonell xevrem

View GitHub Profile
@xevrem
xevrem / configuration.nix
Last active March 10, 2024 19:22
nix stuff
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
@xevrem
xevrem / init.el
Last active March 1, 2023 12:06
elpaca init
(setq-default inhibit-startup-message t ;; dont show startup message
ring-bell-function 'ignore ;; disable all visual and audible bells
indent-tabs-mode nil ;; uses spaces and not tabs
create-lockfiles nil ;; do not create lockfiles
truncate-lines nil ;; truncate lines by default
truncate-partial-width-windows nil
;; disable until we actually call it
recentf-auto-cleanup 'never
;; custo globals
custo/width 120
@xevrem
xevrem / config.kdl
Created November 22, 2022 14:17
zellij config
keybinds clear-defaults=true {
normal {
bind "Ctrl l" { SwitchToMode "locked"; }
bind "Ctrl p" { SwitchToMode "pane"; }
bind "Ctrl n" { SwitchToMode "resize"; }
bind "Ctrl t" { SwitchToMode "tab"; }
bind "Ctrl s" { SwitchToMode "scroll"; }
bind "Ctrl o" { SwitchToMode "session"; }
bind "Ctrl h" { SwitchToMode "move"; }
bind "Ctrl b" { SwitchToMode "tmux"; }
@xevrem
xevrem / config.toml
Last active November 30, 2023 18:19
helix config
theme = "catppuccin_mocha"
# theme = "base16_default"
# theme = "base16_terminal"
[editor]
line-number = "relative"
true-color = true
shell = ["fish", "-c"]
mouse = false
auto-info = true
@xevrem
xevrem / join.ts
Last active August 18, 2021 22:43
array joining
const num = 100000;
const runs = 100;
function populate<T extends number>(arr: T[], prob: T): T[] {
for (let i = num; i--; ) {
if (Math.random() > prob) {
arr[i] = i as T;
}
}
return arr;
@xevrem
xevrem / .zshrc
Last active January 24, 2024 18:38
zinit .zshrc additions
ZINIT_HOME="${XDG_DATA_HOME:-${HOME}/.local/share}/zinit/zinit.git"
[ ! -d $ZINIT_HOME ] && mkdir -p "$(dirname $ZINIT_HOME)"
[ ! -d $ZINIT_HOME/.git ] && git clone https://github.com/zdharma-continuum/zinit.git "$ZINIT_HOME"
source "${ZINIT_HOME}/zinit.zsh"
### End of Zinit's installer chunk
zinit ice wait'0a' lucid atload"_zsh_autosuggest_start"
zinit light zsh-users/zsh-autosuggestions
@xevrem
xevrem / csharp_config.el
Created November 5, 2020 21:08
configuring csharp for emacs
(use-package csharp-mode
:hook
(csharp-mode . rainbow-delimiters-mode)
)
(use-package omnisharp
:after csharp-mode
:commands omnisharp-install-server
:hook
(csharp-mode . company-mode)
(setq inhibit-startup-message t)
(scroll-bar-mode -1) ;; disable vis scrollbar
(tool-bar-mode -1) ;; disable the toolbar
(tooltip-mode -1) ;; disable tooltipt
(set-fringe-mode 10) ;; 'breathing' room
(menu-bar-mode -1)
(setq visible-bell t) ;; visual bell
(set-face-attribute 'default 'nil :font "Fira Code" :height 180)
@xevrem
xevrem / tmux.conf
Created October 7, 2020 10:59
tmux.conf
set -g default-terminal xterm-256color
set -sg escape-time 0
set -g default-shell /usr/local/bin/fish
@xevrem
xevrem / build_emacs_gcc.sh
Last active December 6, 2023 15:18
build emacs 29.1.90 in debian distros
git clone --depth=1 https://github.com/emacs-mirror/emacs.git
cd emacs/
sudo apt install -y autoconf make gcc texinfo libgtk-3-dev libxpm-dev \
libjpeg-dev libgif-dev libtiff5-dev libgnutls28-dev libncurses5-dev \
libjansson-dev libharfbuzz-dev libharfbuzz-bin libtree-sitter-dev \
libgccjit-11-dev
./autogen.sh