Skip to content

Instantly share code, notes, and snippets.

View wiedzmin's full-sized avatar

Alex Ermolov wiedzmin

View GitHub Profile
@wiedzmin
wiedzmin / Buttery_Smooth_Emacs.md
Created October 21, 2024 19:56 — forked from ghosty141/Buttery_Smooth_Emacs.md
Buttery Smooth Emacs - Mirror of Daniel Colasciones great blog post about emacs' inner workings

original url - https://www.facebook.com/notes/daniel-colascione/buttery-smooth-emacs/10155313440066102/

Buttery Smooth Emacs

30 October 2016

Public Emacs has flickered for 30 years. Now, it should be flicker-free. I’ve just landed support for double-buffered rendering for the X11 port. Now you should be able to edit, resize, and introduce bugs in your awful codebase without seeing a partially-rendered buffer or being incited to murder by barely-perceptible white flashes while editing that

@wiedzmin
wiedzmin / gist:4d0e41878a1131f2e31d8a7252d198e4
Created October 17, 2024 22:56 — forked from jackrusher/gist:5139396
Hofstadter on Lisp: Atoms and Lists, re-printed in Metamagical Themas.

Hofstadter on Lisp

In the mid-80s, while reading through my roommate's collection of Scientific American back issues, I encountered this introduction to Lisp written by Douglas Hofstadter. I found it very charming at the time, and provide it here (somewhat illegally) for the edification of a new generation of Lispers.

In a testament to the timelessness of Lisp, you can still run all the examples below in emacs if you install these aliases:

(defalias 'plus #'+)
(defalias 'quotient #'/)
(defalias 'times #'*)
(defalias 'difference #'-)
@wiedzmin
wiedzmin / mu4e-pimped.el
Created February 8, 2023 15:49 — forked from lordpretzel/mu4e-pimped.el
async email sending in emacs (mu4e)
(require 'advice-tools)
(require 'mu4e)
(require 'mu4e-main)
(require 'cl-lib)
(require 'alert)
(require 'dash)
(require 'bui)
(require 's)
(defun mu4e-pimped-set-mail-send-funcs (async-sending)
@wiedzmin
wiedzmin / build-emacs.el
Created February 8, 2023 15:47 — forked from amno1/build-emacs.el
Build Custom Emacs from Git from Emacs
;;; build-emacs.el --- Build custom Emacs from sources -*- lexical-binding: t; -*-
;; Copyright (C) 2022 Arthur Miller
;; Author: Arthur Miller <[email protected]>
;; Keywords: tools
;; 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
@wiedzmin
wiedzmin / script.sh
Created January 22, 2023 17:59 — forked from balsoft/script.sh
Nix: download all dependencies required for an offline build of a package
nix eval np#hello.drvPath --raw \
| xargs nix-store -qR \
| grep '\.drv$' \
| xargs -n1 nix show-derivation \
| jq -s '.[] | select(.[] | .env | has("outputHash")) | keys | .[]' -r \
| xargs nix build --no-link --print-out-paths
@wiedzmin
wiedzmin / notmuch-hello-unread.el
Created January 8, 2023 08:57 — forked from runejuhl/notmuch-hello-unread.el
notmuch functions to show unread count in hello buffer
(defun notmuch-hello-insert-buttons (searches)
"Insert buttons for SEARCHES.
SEARCHES must be a list of plists each of which should contain at
least the properties :name NAME :query QUERY and :count COUNT,
where QUERY is the query to start when the button for the
corresponding entry is activated, and COUNT should be the number
of messages matching the query. Such a plist can be computed
with `notmuch-hello-query-counts'."
(let* ((widest (notmuch-hello-longest-label searches))

I’m currently using Org-roam to facilitate most new note creation.

Org-roam has a concept of “daily” files. I consider these are collections of nodes that the target location (especially the filename, at least in my case) based on the date.

I use dailies (org-roam-capture-today) for:

  • Recurring meeting notes
    • Daily stand-ups
    • Customer meetings
@wiedzmin
wiedzmin / go-ts-fmt.el
Created January 8, 2023 08:56 — forked from GnaneshKunal/go-ts-fmt.el
Plug go-mode's gofmt to the new go-ts-mode (built-in go mode which uses tree-sitter) in emacs
;; Copyright of the below functions belong to the author/contributors of https://github.com/dominikh/go-mode.el.
;; Usage: Plug go-mode's gofmt to the new go-ts-mode (built-in go mode which uses tree-sitter) in emacs.
;; go-ts-mode landed on emacs `master` branch on 2022-12-16.
(defcustom gofmt-command "gofmt"
"The 'gofmt' command.
Some users may replace this with 'goimports'
from https://golang.org/x/tools/cmd/goimports."
@wiedzmin
wiedzmin / github-code-search-syntax.md
Created December 18, 2022 16:25 — forked from jakub-g/github-code-search-syntax.md
Searching files on GitHub

GitHub search docs: here

  • org:ORGNAME to filter down to org
  • org:ORGNAME -repo:ORGNAME/NOISY to filter out some repos
  • path:PATH to search by location
  • language:... or extension:... to filter by lang/extension
  • in:file, in:path, in:file,path to include contents or file paths
@wiedzmin
wiedzmin / org-yank-link.el
Created August 29, 2022 22:01 — forked from lgmoneda/org-yank-link.el
Copy Slack behavior of automatically creating link when pasting url with text selected