Skip to content

Instantly share code, notes, and snippets.

@afair
afair / tmux.cheat
Last active June 3, 2024 23:26
Tmux Quick Reference & Cheat sheet - 2 column format for less scrolling!
========================================== ==========================================
TMUX COMMAND WINDOW (TAB)
========================================== ==========================================
List tmux ls List ^b w
New new -s <session> Create ^b c
Attach att -t <session> Rename ^b , <name>
Rename rename-session -t <old> <new> Last ^b l (lower-L)
Kill kill-session -t <session> Close ^b &
/// Originally from the Geordi project, mirrored here:
/// https://github.com/Eelis/geordi/blob/master/prelude/evil_casts.hpp
///
/// Written by the Geordi authors - q.v. http://www.eelis.net/geordi/
/// Reformatted and annotated by Alexander Bohn - q.v. https://about.me/alexanderbohn
#ifndef EVIL_CASTS_HPP
#define EVIL_CASTS_HPP
@zw963
zw963 / flycheck-eglot.el
Created March 5, 2022 19:37
flycheck works with eglot (Stolen from doom)
(defvar-local +lsp--flycheck-eglot--current-errors nil)
(defun +lsp--flycheck-eglot-init (checker callback)
"CHECKER is the checker (eglot).
CALLBACK is the function that we need to call when we are done, on all the errors."
(eglot-flymake-backend #'+lsp--flycheck-eglot--on-diagnostics)
(funcall callback 'finished +lsp--flycheck-eglot--current-errors))
(defun +lsp--flycheck-eglot--on-diagnostics (diags &rest _)
(cl-labels