Skip to content

Instantly share code, notes, and snippets.

View wiedzmin's full-sized avatar

Alex Ermolov wiedzmin

View GitHub Profile
@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 <arthur.miller@live.com>
;; 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
@wiedzmin
wiedzmin / avy-actions.el
Created May 15, 2022 18:01 — forked from karthink/avy-actions.el
Supplementary code for Avy actions for Emacs
;; Code used in the demos at https://karthinks.com/software/avy-can-do-anything
;; Tweak as desired.
(package-install 'avy)
(setq avy-keys '(?q ?e ?r ?y ?u ?o ?p
?a ?s ?d ?f ?g ?h ?j
?k ?l ?' ?x ?c ?v ?b
?n ?, ?/))
;; -*- lexical-binding: t -*-
;; timeline-mode minor mode records and shows a timeline of buffer
;; changes
;;
;; Buffer changes are stored after using complex commands and after
;; every save
;;
;; Changes are processed after 5 seconds of idleness, so that