Skip to content

Instantly share code, notes, and snippets.

@Gavinok
Gavinok / ci-like-vim.el
Created July 6, 2022 20:43
Make the ci( function like it does in vim
(defun my/jump-to-par (&rest args)
(when (< (save-excursion
(search-forward "("))
(save-excursion
(search-forward ")")))
(search-forward "(")))
(advice-add 'evil-inner-paren :before #'my/jump-to-par)
@Gavinok
Gavinok / yas-to-tempel.el
Last active May 14, 2022 07:54
The basis of porting yasnippets to tempel
(defvar *snippet-funcs*
'((any . (tabstop placeholder choice variable ;; text
))
(tabstop . (("$" int) ("${" int "}")))
(placeholder . (("${" int ":" any "}")))
(choice . ("${" int "|" text ("," text)* "|}"))
(variable . (("$" var) ("${" var "}")
("${" var ":" any "}")
("${" var "/" regex "/" (format | text)+ "/" options "}")))
(format . (("$" int) ("${" int "}")
@Gavinok
Gavinok / init.el
Created November 24, 2021 15:57
A minimal emacs configuration using evil mode and NO use-package
;;; Startup
;;; PACKAGE LIST
(setq package-archives
'(("melpa" . "https://melpa.org/packages/")
("elpa" . "https://elpa.gnu.org/packages/")))
;;; BOOTSTRAP USE-PACKAGE
(package-initialize)
;; This can be commented out if you don't want the package repos
@Gavinok
Gavinok / init.el
Last active November 10, 2024 15:12
A minimal emacs configuration using evil mode and use-package
;;; Startup
;;; PACKAGE LIST
(setq package-archives
'(("melpa" . "https://melpa.org/packages/")
("elpa" . "https://elpa.gnu.org/packages/")))
;;; BOOTSTRAP USE-PACKAGE
(package-initialize)
(setq use-package-always-ensure t)
(unless (package-installed-p 'use-package)
@Gavinok
Gavinok / eaf-setup.lisp
Created September 6, 2021 02:54
use package configuration for setting up eaf
(use-package quelpa-use-package)
;; Don't forget to run M-x eaf-install-dependencies
(use-package eaf
:demand t
:quelpa (eaf :fetcher github
:repo "manateelazycat/emacs-application-framework"
:files ("*"))
:load-path "~/.emacs.d/site-lisp/emacs-application-framework" ; Set to "/usr/share/emacs/site-lisp/eaf" if installed from AUR
:init
(use-package epc :defer t :ensure t)
@Gavinok
Gavinok / makefile
Created March 6, 2021 15:37
Makefile for ing
.SUFFIXES: .ms .ps .pdf
# Groff settings
PRE = preconv | tbl| eqn
ROFF = troff
POST = grops
# Neatroff settings
BASE = $(HOME)/.local/share/neat
ROFF = $(BASE)/neatroff/roff
POST = $(BASE)/neatpost/post
@Gavinok
Gavinok / EUL.tmac
Created January 24, 2021 18:56
extra width coloured underline in groff
.\" eul.extra is the extra langth added to the start and end of the underline
.nr eul.extra 7
.\" eul.color set the color of the underline
.\" I made an explination of colors in groff here https://www.youtube.com/watch?v=LvLnht1v37g
.ds eul.color red
.de EUL
.\" eul.textwidth is the width of the text stored in the first argument
. nr eul.textwidth \\w'\\$1'
.
.\" \Z'commands' prints the following commands then resets the cursor to it's
#!/usr/bin/env sh
######################################################################
# @author : Gavin Jaeger-Freeborn ([email protected])
# @file : feedcheck.sh
# @created : Mon 11 Jan 2021 08:07:36 PM
#
# @description : check rss feed
######################################################################
@Gavinok
Gavinok / intro.rkt
Created December 31, 2020 23:30
Introduction to the Racket programming language
#lang racket
"hello"
1
2.3
#t
@Gavinok
Gavinok / tree.ms
Last active December 27, 2020 06:52
.\" From the actual video
.\" to compile run
.\" groff -p -ms -Tpdf tree.ms > tree.pdf
.TL
Merry Christmas To Everyone
.AU
From: Gavin
.SH
.LP