Skip to content

Instantly share code, notes, and snippets.

@amno1
amno1 / sleepy-cat.el
Last active July 3, 2024 21:13
Ascii cat
;;; sleepy-cat.el --- Animate an ascii cat in Emacs -*- lexical-binding: t; -*-
;; Copyright (C) 2024 Arthur Miller
;; Author: Arthur Miller <[email protected]>
;; Keywords:
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
@amno1
amno1 / tail.el
Last active October 8, 2024 06:52
Tail & Head implementation in Emacs Lisp
Print the last 10 lines of each FILE to standard output.
With more than one FILE, precede each with a header giving the file name.
Mandatory arguments to long options are mandatory for short options too.
-c, --bytes=[+]NUM output the last NUM bytes; or use -c +NUM to
output starting with byte NUM of each file
-f, --follow[={name|descriptor}]
output appended data as the file grows;
an absent option argument means 'descriptor'
-F same as --follow=name --retry
@amno1
amno1 / temp-edit-svg.el
Last active January 5, 2025 08:17
Edit an open svg file in a separate buffer and update the view after the save
;;; temp-edit-svg.el --- Edit svg in a temp buffer -*- lexical-binding: t; -*-
;; Copyright (C) 2025 Arthur Miller
;; Author: Arthur Miller <[email protected]>
;; Keywords:
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
;;; cua-mini.el --- Override standard bindings with CUA-bindings -*- lexical-binding: t; -*-
;; Copyright (C) 2024 Arthur Miller
;; Author: Arthur Miller <[email protected]>
;; Keywords:
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
@amno1
amno1 / buffer-faces.el
Last active November 7, 2025 15:33
Show All Faces Being Used in a Buffer
;;; buffer-faces.el --- show all faces being used in a buffer -*- lexical-binding: t -*-
;; Copyright (C) 2025 Arthur Miller
;; Author: Arthur Miller <[email protected]>
;; Keywords:
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or