Skip to content

Instantly share code, notes, and snippets.

View choppsv1's full-sized avatar
🏠
Working from home

Christian Hopps choppsv1

🏠
Working from home
View GitHub Profile
@choppsv1
choppsv1 / vpp-auto-format.el
Created May 19, 2019 16:42
Auto-format vpp C files on save in Emacs using "indent"
(defun vpp-format-buffer ()
(if (and (eq major-mode 'c++-mode)
(boundp 'clang-format-buffer))
(clang-format-buffer)
(vpp-indent-format-buffer)))
(defun vpp-maybe-format-buffer ()
"Reformat buffer if contains VPP magic"
(when (save-excursion
@choppsv1
choppsv1 / emacs-25.1-24bit.diff
Last active March 14, 2017 10:06
True color (24-bit) terminal support for Emacs 25.1
This diff is a modified version of a diff written by Rüdiger Sonderfeld.
The original diff can be found here:
http://emacs.1067599.n5.nabble.com/RFC-Add-tty-True-Color-support-tt299962.html
To enable the feature one must set one of 2 environment variables either
ITERM_24BIT or KONSOLE_DBUS_SESSION. The former will enable ITU T.416 mode, the
latter will use semi-colon seperators used by other terminals (and also
supported by iterm development branch).
@choppsv1
choppsv1 / keybase.md
Created July 1, 2016 01:18
keybase.md

Keybase proof

I hereby claim:

  • I am choppsv1 on github.
  • I am chopps (https://keybase.io/chopps) on keybase.
  • I have a public key whose fingerprint is 9B9E B21F F345 FA6D 451D AEA5 2E1D 830E D7B8 3025

To claim this, I am signing this object:

# -*- coding: utf-8 -*-#
# December 31 2015, Christian Hopps <[email protected]>
#
# Copyright (c) 2015-2016 by Christian E. Hopps.
# All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
@choppsv1
choppsv1 / tmux-2.1-24bit.diff
Created November 11, 2015 06:29
True color (24-bit) terminal support for tmux-2.1
This diff is a modified version of a diff written by Arnis Lapsa.
[ The original can be found here: https://gist.github.com/ArnisL/6156593 ]
This diff adds support to tmux for 24-bit color CSI SRG sequences. This
allows terminal based programs that take advantage of it (e.g., vim or
emacs with https://gist.github.com/choppsv1/73d51cedd3e8ec72e1c1 patch)
to display 16 million colors while running in tmux.
The primary changes I've made were to support ":" as a delimeter as well
@choppsv1
choppsv1 / tmux-2.1-24bit.diff
Last active December 13, 2015 20:06
True color (24-bit) terminal support for tmux-2.1
This diff is a modified version of a diff written by Arnis Lapsa.
[ The original can be found here: https://gist.github.com/ArnisL/6156593 ]
This diff adds support to tmux for 24-bit color CSI SRG sequences. This
allows terminal based programs that take advantage of it (e.g., vim or
emacs with https://gist.github.com/choppsv1/73d51cedd3e8ec72e1c1 patch)
to display 16 million colors while running in tmux.
The primary changes I've made were to support ":" as a delimeter as well
@choppsv1
choppsv1 / emacs-24.5-24bit.diff
Created May 17, 2015 23:43
True color (24-bit) terminal support for Emacs 24.5
This diff is a modified version of a diff written by Rüdiger Sonderfeld.
The original diff can be found here:
http://emacs.1067599.n5.nabble.com/RFC-Add-tty-True-Color-support-tt299962.html
To enable the feature one must set one of 2 environment variables either
ITERM_24BIT or KONSOLE_DBUS_SESSION. The former will enable ITU T.416 mode, the
latter will use semi-colon seperators used by other terminals (and also
supported by iterm development branch).
@choppsv1
choppsv1 / emacs-24.4-24bit.diff
Last active September 14, 2017 16:23
True color (24-bit) terminal support for Emacs 24.4
This diff is a modified version of a diff written by Rüdiger Sonderfeld.
The original diff can be found here:
http://emacs.1067599.n5.nabble.com/RFC-Add-tty-True-Color-support-tt299962.html
To enable the feature one must set one of 2 environment variables either
ITERM_24BIT or KONSOLE_DBUS_SESSION. The former will enable ITU T.416 mode, the
latter will use semi-colon seperators used by other terminals (and also
supported by iterm development branch).
@choppsv1
choppsv1 / tmux-24.diff
Last active December 21, 2018 15:25
True color (24-bit) terminal support for tmux-1.9a and tmux-2.0
This diff is a modified version of a diff written by Arnis Lapsa.
[ The original can be found here: https://gist.github.com/ArnisL/6156593 ]
This diff adds support to tmux for 24-bit color CSI SRG sequences. This
allows terminal based programs that take advantage of it (e.g., vim or
emacs with https://gist.github.com/choppsv1/73d51cedd3e8ec72e1c1 patch)
to display 16 million colors while running in tmux.
The primary change I made was to support ":" as a delimeter as well
@choppsv1
choppsv1 / emacs-24.3-24bit.diff
Last active May 27, 2016 22:57
True color (24-bit) terminal support for emacs-24.3
This diff is a modified version of a diff written by Rüdiger Sonderfeld.
The original diff can be found here:
http://emacs.1067599.n5.nabble.com/RFC-Add-tty-True-Color-support-tt299962.html
To enable the feature one must set one of 2 environment variables either
ITERM_24BIT or KONSOLE_DBUS_SESSION. The former will enable ITU T.416 mode, the
latter will use semi-colon seperators used by other terminals (and also
supported by iterm development branch).