Skip to content

Instantly share code, notes, and snippets.

View cvcore's full-sized avatar
🍀
🎼🎏

Cheng cvcore

🍀
🎼🎏
View GitHub Profile
@cvcore
cvcore / colorize-emacs.bashsource
Created May 1, 2022 08:32 — forked from algal/colorize-emacs.bashsource
Setting up truecolor (24 bit color) in emacs in the terminal, under iTerm2, blink.sh, and others.
# sourcing this file will define a bash functions that
# tries to run subsequent calls to emacs with 24 bit color.
#
# It sets TERM=xterm-emacs-leg if
# - we've created a user-local terminfo record for xterm-emacs-leg, and
# - we're using iTerm2 or something has set COLORTERM=truecolor
#
# This will cause emacs to use 24 bit color only when it will work,
# inside or outside of tmux. I haven't found a way to auto-detect Blink.sh yet.
#